-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
This is great: #121, and could be improved further.
Describe the solution you'd like
Add a global "flatten" option for genqlient.yaml to automatically flatten all fragments.
Describe alternatives you've considered
Adding flatten individually to all request, which I currently do, but having this would be more convenient.
Additional context
I would recommend everyone to flatten all of their fragments together with a typename, this option would make that smoother for new users. See an example from my code:
query SearchRecipeMinimal($request: SearchRecipeRequest!) {
# @genqlient(typename: "SearchRecipeMinimalResult")
searchRecipe(req: $request) {
# @genqlient(flatten: true)
recipes {
...FoodItemTypeMinimal
}
}
}Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request