You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleFooBarGQL= {
/* all the usual fields generated by graphql_ppx */letppx_printed_query="...";letquery= ppx_printed_query;letparse= value...;// ...etc.../* new field */letqueryName="fooBarDingDong"
}
reason-apollo-hooks uses the approach with passing both query and variables as it's supported by Apollo. Probably a good idea to submit PR to reason-apollo to support such a way of passing refetchQueries
Could graphql_ppx generate a let binding that contains the GraphQL query's name?
example input
output:
This would be nice as now we have to do
refetchQueries=[| "fooBarDingDong" |]
https://github.com/apollographql/reason-apollo#mutationThe text was updated successfully, but these errors were encountered: