Open Gregoirevda opened 5 years ago
I think it would make graphql_ppx coupled a lot with reason-apollo.
Another solution would be to provide the type of make
function making it possible to alias that function in reason-apollo
. That way AddUser
would be only used to provide it to CreateMutation
/CreateQuery
/CreateSubscription
and creating variables would be the responsibility of AddUserMutation
which would be much cleaner for the users
Nice to have:
The ppx could return a wrapped ReasonApollo module, based on bs-config, to make the usage easier from reason-apollo: