-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(graphql): rewrite GraphQL data provider (#6357)
buraya yaziyoduk sanki
- Loading branch information
Showing
70 changed files
with
6,675 additions
and
4,268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
"@refinedev/graphql": major | ||
--- | ||
|
||
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 utilize `option` parameter to change the behaviour of the data provider. You can also do it individually for a single action. | ||
We've removed `gql-query-builder` and `graphql-request` dependencies and now using `@urql/core` as a GraphQL client. | ||
This means now it's required to pass either `gqlQuery` or `gqlMutation` to the hooks, `meta.fields` usage is removed. | ||
`graphql-tag` package is also removed since `@urql/core` already has `gql` 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/ | ||
|
||
[Resolves #5942](https://github.com/refinedev/refine/issues/5942) | ||
[Resolves #5943](https://github.com/refinedev/refine/issues/5943) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.