python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Not able to add data using mutation on Apollo Client
Mutation on client side of Apollo server:
import { gql } from "@apollo/client";
export const UPLOAD_IMAGE = gql`
mutation uploadImage($url: String!, $description: String!, $posterName: Str...
Tom Brooke
Votes: 0
Answers: 1
How to use constant data instead of query field name?
In my React(Apollo client) App, for creating queries I am using gql`` tag from graphql-tag package, I am wandering if following is somehow possible to achieve:
const bookField = 'books'
const GET_BOOK...
Vano
Votes: 0
Answers: 1
Apollo cache typePolicies: same field on multiple parents/queries
I have the same fields on multiple parents (different objects) in Apollo cache.
I want to do some logic in the merge function in typePolicies.
However, when these fields are repeated on many places co...
rmartrenado
Votes: 0
Answers: 0
Apollo Client 3.x.x , Next JS, Sentry, Strapi
I am facing an issue , when i installed sentry to my next js project , suddenly CORS error occured in my apollo client 3.x.x , but the thing is it only give CORS error in useQuery not in useMutation.
...
Sikander Ahmad
Votes: 0
Answers: 0