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
Graphql codegen has a client preset plugin which has the following advantage over the current generic SDK plugin:
It "automatically" types the graphql operation, so it is explicit in where a particular gql document is actually being used in the app. Makes things more maintainable.
Less indirection in the API layer. You just pass the operation constant to a fetch function.
This task would involve:
Installing the client preset per the docs
Updating the codegen config
In all the "providers" files, replace the gql template function with a graphql function call.
Remove calls to the "sdk" object, and instead pass the query/mutation constants directly to the fetch wrapper.
The text was updated successfully, but these errors were encountered:
Graphql codegen has a client preset plugin which has the following advantage over the current generic SDK plugin:
This task would involve:
gql
template function with agraphql
function call.The text was updated successfully, but these errors were encountered: