-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Omitting the info object could put 'promises' into nested fields #57
Comments
Hmm this is a really interesting idea! Would you be up to exploring it in a fork? Happy to assist with the implementation. |
Thank you for reporting. In the last few months, since the transition of many libraries under The Guild's leadership, We've reviewed and released many improvements and versions to graphql-cli, graphql-config and graphql-import. We've reviewed What we've found is that the new GraphQL Mesh library is covering not only all the current capabilities of GraphQL Binding, but also the future ideas that were introduced in the original GraphQL Binding blog post and haven't come to life yet. And the best thing - GraphQL Mesh gives you all those capabilities, even if your source is not a GraphQL service at all! Just like GraphQL Binding, you get a fully typed SDK (thanks to the protocols SDKs and the GraphQL Code Generator), but from any source, and that SDK can run anywhere, as a connector or as a full blown gateway. If you think that we've missed anything from GraphQL Binding that is not supported in a better way in GraphQL Mesh, please let us know! In the context of that particular issue - I wonder what you think about the list of dedicated fluent client SDKs I've linked to and if they cover those use case in a better way? We're looking forward for your feedback of how we can make your experience even better! |
Let's say
Post
has multiple categories insidecategories
field.If you query for -
db.query.allPosts()
- you'll only get scalar fields.What do you think about having all nested fields as thenable object
eg:
under the hood,
categories.then()
would be fired, and it could be used to start fetching nested field and in fact return desired data without needing to write info objectDrawback is that you'd have to send 2 requests instead of one.
Note that if given field is not desired,
then()
of it is not fired, so it's request is not sent.The text was updated successfully, but these errors were encountered: