apollostack Questions

1

I get this randomly in my Apollo Client code. I'm using the anti-pattern of surrounding all setState with an isMounted flag to prevent attempts to set the state when a component is unmounted or a u...
Checkrein asked 27/12, 2019 at 7:42

6

Solved

I need to be able to create a user and add it's favourite movies (An array of objects with a reference to the Movies collection and his personal rating for each movie) in a single request. Somethi...
Dissuasive asked 19/11, 2016 at 20:31

3

Solved

Given the following apollo server graphql schema I wanted to break these down into separate modules so I don't want the author query under the root Query schema.. and want it separated. So i added ...
Isidraisidro asked 1/12, 2016 at 2:52

7

Solved

I need a graphql client lib to run on node.js for some testing and some data mashup - not in a production capacity. I'm using apollo everywhere else (react-apollo, apollo's graphql-server-express)....
Oppressive asked 24/11, 2016 at 17:55

2

Solved

In the Apollo React docs http://dev.apollodata.com/react/queries.html#basics there are examples of fetching automatically when the component is shown, but I'd like to run a query when a button is c...
Greatuncle asked 2/10, 2016 at 7:34

6

I'm fetching a list of data with the graphql HOC provided by react apollo. E.g.: const fetchList = graphql( dataListQuery, { options: ({ listId }) => ({ variables: { listId, }, }), props...
Pinion asked 9/3, 2017 at 11:20

2

Solved

I am very new in both Apollo Stack and Relay. I am trying to choose between them to invest my time. After finish reading the book Learning GraphQL and Relay, I turned to Apollo to learn what it has...
Stovall asked 4/12, 2016 at 7:58

2

Solved

I have both the getMovies query and addMovie mutation working. When addMovie happens though, I'm wondering how to best update the list of movies in "Edit Movies" and "My Profile" to reflect...
Quinary asked 19/10, 2016 at 17:17

2

Solved

2018 Update: Apollo Client 2.1 added a new Mutation component that adds the loading property back. See @robin-wieruch's answer below and the announcement here https://dev-blog.apollodata.com/introd...
Bacchic asked 7/9, 2016 at 22:29

1

Solved

We can make some requests to the server using both Query and Mutation. In these queries we can pass some params and we will get some results from the server in both cases. The only one obligatory d...

2

I have a problem combining pagination, prefetching, and refetching of data using Apollo with Angular 2. My intended behaviour in the app is that there never should be any difference in data between...
Deformity asked 16/2, 2017 at 12:55

1

I am totally new to react-apollo I am pretty confused that how to rehydrate state from the server side to client And my app is working, But the problem is it is not using preloaded state from Apoll...
Supersaturate asked 18/6, 2017 at 11:51

1

Solved

I'm using the Apollo Stack with graphql-server-express and apollo-client. Because my backend is not perfect errors can appear and therefore I have to respond to a request with an error for that pa...
Psalmbook asked 25/1, 2017 at 13:29

1

Solved

I am making use of interfaces with my GraphQL instance, but this question perhaps applies to unions as well. There are 2 common fields across all types which implement the interface, however there ...
Vitiate asked 13/1, 2017 at 8:56

1

I have two screens: Screen1: Results Screen2: Edit Filters When I edit the filters on Screen2 and press back, I would like to refetch the query on Screen1 (with the newly built filter string var...
Rosena asked 7/11, 2016 at 1:14

2

I have an upsert query that gets triggered on either create or update. On update, Apollo integrates the result into the cache but on create it does not. Here is the query: export const UPSERT_NOT...
1

© 2022 - 2024 — McMap. All rights reserved.