menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Platform
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team
Posts
Members
Info
down-caret

simple example for last link in link chain

Hi, i need a working example for a single link or last link in link chain. I only want to use client side state, so without HTTPLink but with one link middleware, e.g. from https://www.apollographql.com/docs/link/stateless: If the link is the last in link chain the forward…

thumbsup
0
message-simple
4

Avoiding OPTION call

Hello, I am getting OPTIONS call for each graphql query or mutation . How can I avoid that ? I know options is good for security but for an internal application where we are calling around 40~50 gql services in a flow each call when goes through options call is time consuming…

thumbsup
0
message-simple
18

Patterns for implementing Drag and Drop with Apollo Client and mutations?

I'm attempting to build a trello clone, and manage all my state with Apollo Client. I'm running into issues when reordering the columns, especially regarding optimistic updates and when/if to manually update the client. My issue appears to be nearly identical to this guy on…

thumbsup
1
message-simple
5

General GraphQL / TypeScript query best practise question

Say I have a users table and a TypeScript Interface based on the database schema, e.g. IUser with the id field required, full name optional etc. Now I want to reference the same interface on the client (e.g. a react app using react-apollo). So although the IUser interface is…

thumbsup
0
message-simple
5

Invalid Mutation Response - Trying to pull data from Query response

I'm trying to pull some information from the returned values from my Mutation Query (found in the onComplete portion of the InputGraphSectionContainer class), but unfortunately, react is reading the value as undefined during the execution of the onComplete function. I've…

thumbsup
0
message-simple
3

Is there any way to use extensions on apollo-link-state?

thumbsup
0
message-simple
1

Testing a mutation with enzyme and mockProvider

hey guys, maybe anyone would be able to help me with testing a mutation for the registration component? I'm using mockProvider, but it keeps throwing "No more mocked responses for the query: mutation..." no matter what I do. Any help would be highly appreciated. Thanks.

thumbsup
0
message-simple
1

The best way to save redux state data with graphql

In the examples, you can query using jsx in the <Query /> tag. Is there a logical way to use it in saga or action? Or use a Rest APi

thumbsup
0
message-simple
1

Uncaught (in promise) Error: Network error: Failed to fetch at new ApolloError…

Hey all, i have a login mutation/resolver for setting cookies. Works in playground, cookies are also set with React, but i get the errorMsg below, can someone help? What does it mean? Code in react Thanks!

thumbsup
0
message-simple
5

Move Over Redux: Apollo-Client as a State Management Solution

A blog post I spun up for using apollo-client as a state management solution: https://link.medium.com/PW203YqiXW

thumbsup
2
message-simple
1