Major Changes
-
#6336
58e90f26248ed3d1bc92ae748f03a2cbe71721c2
Thanks @aliemir! - feat: rewrite GraphQL data provider.We've modernized GraphQL dataprovider to make it more flexible and strictly coupled into a specific API schema.
You can utilizeoption
parameter to change the behaviour of the data provider. You can also do it individually for a single action.
We've removedgql-query-builder
andgraphql-request
dependencies and now using@urql/core
as a GraphQL client.
This means now it's required to pass eithergqlQuery
orgqlMutation
to the hooks,meta.fields
usage is removed.
graphql-tag
package is also removed since@urql/core
already hasgql
export to write queries & mutations.
We are no more re-exporting other packages, just our data provider, live provider and defaultOptions.See the updated documentation for more details: https://refine.dev/docs/data/packages/graphql/