graphql_builder
graphql_builder copied to clipboard
How to pass a fragment in a query?
query{
user(
input: {
userUuid: "ID",
name: "FooName"
}
){
... user
}
}
How can I add a snippet as a result of a query in the response fields?
%GraphqlBuilder.Query{
operation: :user,
variables: [],
fields: ["... user"]
}
Thank you for adding this issue, @Macorreag ! We just haven't needed this functionality yet, but it definitely should be a good addition.
What do you think of my PR here? If this looks good to you, I can merge and cut another release.
https://github.com/billperegoy/graphql_builder/pull/15