menu

Apollo

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

Channels
Team
Posts
Members
Info

Query Where parameters

Hi community ! I try to add dynamic where parameters on my query, but the variable does not seem to work : if i try my query with static userId, my result is good, but with userId parameter, i receive wrong result : Don't work : Work : …

thumbsup
0
message-simple
0

ApolloProvider create in react child component

Hi, Our company in is building web app made up of pluggable react child components. the main app does not know Apollo. only a few child components(build by different team) will be using ApolloProvider to query the respective GraphQL endpoints. My team is first one to build the…

thumbsup
0
message-simple
0

Trying to get propType from graphql-everywhere to work

Hey I am using Apollo and I am trying to get propType from graphql-everywhere to generate propTypes. This is my current set up: But I cannot find a way to make this work. Docs are not that extensive to get more info from there.

thumbsup
1
message-simple
0

Why does cache normalize anonymous objects in arrays?

I have objects that contain arrays of simple objects, without ids, and apollo-cache-inmemory normalizes them. What is the reasoning behind that? Doesn't that just use more memory and cpu without benefits?

thumbsup
0
message-simple
0

Need help with local state (based on "Manage local state" in the docs)

Hi, everyone, I've been playing around with Apollo Client in a React Native app and I've created some local state based on the example tutorial "Manage local state" in the Apollo docs. The example is adding something to the cart. This works great but the example initialises this…

thumbsup
0
message-simple
17

Apollo Client “Query component” pagination+ FlatList in React Native issue

am working on a react-native APP with apollo client 2.5 I am following this tutorial :https://www.apollographql.com/docs/react/features/pagination/ now when I fetch the data I return a "flatlist" that takes the returned array of items from the graphql query component and renders…

thumbsup
0
message-simple
2

Apollo client, TypeScript, CORS

To avoid duplicating issue description, here is the link to the same question on Reddit: https://www.reddit.com/r/graphql/comments/cfo7gi/apollo_client_typescript_cors/

thumbsup
0
message-simple
0

Apollo Client with http, ws, retry and error handling?

Hi, does anyone know about a (real world) code example of an Apollo Client using httpLink, wsLink, retryLink and a proper errorLink handling? I can't figure out how to compose all this together :( Thanks in advance!

thumbsup
0
message-simple
1

Pre-fetching?

React: I have a Child component that <Link />'s to a resource heavy page. I'm trying to pre-fetch when the user hovers over the link. My thinking is: • use onMouseOver = () => client.query. …

thumbsup
0
message-simple
2

Found @client directives in a query but no ApolloClient resolvers..

OS: Windows 10 Pro apollo-client: 2.6.3 apollo-boost: 0.1.16 …

thumbsup
0
message-simple
1