Question about /data/graphql/Database/* quotes on feature/apollo
See original GitHub issueHi all,
On the branch feature/apollo
I can see in the folder /data/graphql/Database/*
some files with code quoted with backticks, like in https://github.com/kriasoft/react-starter-kit/blob/feature/apollo/src/data/graphql/Database/users/CreateUser.js#L4.
My question is if this is about Apollo or about Graphql, and what do they mean.
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
GraphQL query best practices
When creating queries and mutations, follow these best practices to get the most out of both GraphQL and Apollo tooling. Name all operations....
Read more >Graphql instead of custom data engine · Discussion #315
This is just me daydreaming: The backend could use the graphql schema to generate the database schema as well as queries/mutations for all...
Read more >GraphQL specification
GraphQL describes the types of data expected by query variables. Input types may be lists of another input type, or a non‐null variant...
Read more >Building a GraphQL Application with Vue 3 and Apollo
This data graph centralizes all of the APIs consumed by your application by mapping each field to a resolver that populates it with...
Read more >Getting up and running with GraphQL
GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ughh
this.props.dataForComponent.data.databaseGetUser
souds really crazy. You can use something likethis.props.user
in component, go for it! 🙂 It’s real and you can unlock new level, please keep discovering 🙂@langpavel Ok, I think I got the idea. I just managed to retrieve the parameter on the url with this:
Lets say I have this route for a component oneUser:
Then in the component, in
index.js
:The query in
OneUser.graphql
will be:And in
oneUser.js
:I just had to modify the
databaseGetUser
query to search byid
instead byemail
.It works, but… is
this.props.dataForComponent.data.databaseGetUser
a proper way to retrieve data fromindex.js
?