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-tag: how to get the actual string for the body request?
I want to use the library https://github.com/apollographql/graphql-tag
I'm looking for someone smarter than me that understands how to actually use it.
Say I have a GraphQL query document like so:
con...
user2923322
Votes: 0
Answers: 2
GraphQL Tag dynamic table name in query (apollo)
In my app every customer has a own table for its data. Depending on which customer was selected I want to dynamically build the tablename for the Graphql query.
For example:
// Query for customer 1
gq...

Thomas K.
Votes: 0
Answers: 2