python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
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
graphql client: map enum value to desired form
We are using graphql-codegen on both the client and the server to handle mapping from our graphql schema to our typescript types.
We have an enum in graphql
enum Status {
ACTIVE
INACTIVE
NOT_CON...
Matt
Votes: 0
Answers: 1
GraohQL: how to create a query parameter constraint
How do I validate a GraphQL query parameter. I want the bookings query not to receive negative values on page parameter.
I am using these modules for typescript types generation, is it possible to gen...
crypto zaur
Votes: 0
Answers: 1
Adding a custom type to codegen.yml
My GraphQL schema uses a type called PointScalar, which in Typescript would be defined as
export type PointScalar = {
coordinates: [number, number]
}
Without any modification, codegen declares Poin...
Michael Lorton
Votes: 0
Answers: 1