Is there a way to programmatically define GraphQL fragments? #179
seancdavis
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's a bit tedious to build out the
schema.yml
file and then essentially have to translate the same thing to individual GraphQL fragments just to make querying a little cleaner. Especially on sites that are primarily page-based, is there a way to streamline this so theschema.yml
can be the source of truth?For example, by having the following in
schema.yml
:Could I then have a fragment automatically defined as:
Beta Was this translation helpful? Give feedback.
All reactions