Skip to content

fragments #755

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

Closed
DrPyser opened this issue Jun 2, 2018 · 3 comments
Closed

fragments #755

DrPyser opened this issue Jun 2, 2018 · 3 comments

Comments

@DrPyser
Copy link

DrPyser commented Jun 2, 2018

I can't find any documentation anywhere on support for fragments in graphene.

Is it possible to define fragments? If so, how?

Thanks.

@DrPyser
Copy link
Author

DrPyser commented Jun 2, 2018

I think I now understand that fragments are defined client-side. Closing.

@DrPyser DrPyser closed this as completed Jun 2, 2018
@roelzkie15
Copy link

@DrPyser Hey hope you could share your solution or the link to a documentation so everyone could learn also!

@DrPyser
Copy link
Author

DrPyser commented Apr 3, 2019

https://graphql.org/learn/queries/#fragments

The fragments are defined by the client and sent along with the query. The server doesn't have to do anything special, the framework(graphql parser) takes care of expanding the fragments into their component fields before passing the query to the application code.

@DoctorJohn DoctorJohn mentioned this issue Jun 18, 2020
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants