apollo Articles

This are all our articles tagged with:
apollo

by admin

GraphQL Where: greater than / less than

I am trying to figure out how to query "less than"/"greater than" using GraphQL towards … Read more GraphQL Where: greater than / less than

by admin

How to handle network errors in nuxt apollo

I’m trying to catch the network error on thrown from nuxt/apollo module. I’ve defined error … Read more How to handle network errors in nuxt apollo

by admin

Apollo : generate queries from an array

I succeeded to create an apollo query on-demand. It fetches two objects with ids "one" … Read more Apollo : generate queries from an array

by admin

How React Query or Apollo Client ensures updated data?

Both React Query and Apollo Client cache the API response and the second time, a … Read more How React Query or Apollo Client ensures updated data?

by admin

How to map a aliased graphql query in react/js?

I have this data/result object coming from apollo/GraphQL: data: {,…} awarded_casinos: [{Mobile: true, Popular: true, … Read more How to map a aliased graphql query in react/js?

by admin

Use parameters for serializing graphql response

I am using GraphQl with Apollo. So let’s say I have a query looking like … Read more Use parameters for serializing graphql response

by admin

I want to update every 3 seconds without using react apollo refetch

I am using react apollo. I want to update the user.percent of the progressbar component … Read more I want to update every 3 seconds without using react apollo refetch

by admin

Using graphQL apollo refetch will also update other components

I’m using react and Apollo. I am using refetch in the ProgressBar, which is updated … Read more Using graphQL apollo refetch will also update other components

by admin

TypeError: this.refreshClient(…).client.watchQuery is not a function

import { gql, useQuery } from ‘@apollo/client’; const getBooksQuery = gql{ books{ name id } … Read more TypeError: this.refreshClient(…).client.watchQuery is not a function

by admin

useQuery doesn’t work after redirect with useMutations by apollo react

after useMutation, user go to other page. there are useQurey, but it doesn’t work. export … Read more useQuery doesn’t work after redirect with useMutations by apollo react

by admin

How to use Apollo/Graphql hooks within external React.js component library

I have 3 React.js projects and I’m trying to consolidate the reused components across all … Read more How to use Apollo/Graphql hooks within external React.js component library

by admin

Stop `useMutation` from re-rendering component and ignore result

I have a mutation call like this (this isn’t the actual mutation call, but a … Read more Stop `useMutation` from re-rendering component and ignore result

by admin

I can’t send a parameter through graphql query

i’m reciving the error Variable "$id" of required type "String!" was not provided. Someone knows … Read more I can’t send a parameter through graphql query