7.1 KiB
@refinedev/nestjs-query
1.1.1
Patch Changes
- #5425
190af9fce2
Thanks @aliemir! - Updated@refinedev/core
peer dependencies to latest (^4.46.1
)
1.1.0
Minor Changes
-
#5409
0026fe34d0
Thanks @BatuhanW! - feat: addgqlQuery
andgqlMutation
support.Previously,
@refinedev/nestjs-query
package only supported GraphQL operations throughmeta.fields
.Now we've added
gqlQuery
andgqlMutation
fields inmeta
object.You can utilize these fields along with
graphql-tag
package to build your queries/mutations.See the updated documentation for more information: https://refine.dev/docs/packages/data-providers/nestjs-query
Query Example:
import { useList } from "@refinedev/core"; import gql from "graphql-tag"; const PRODUCTS_QUERY = gql` query ProductsList( $paging: OffsetPaging! $filter: BlogPostFilter $sorting: [BlogPostSort!]! ) { products(paging: $paging, filter: $filter, sorting: $sorting) { nodes { id name } totalCount } } `; const { data } = useList({ resource: "products", meta: { gqlQuery: PRODUCTS_QUERY }, });
Mutation Example:
import { useForm } from "@refinedev/core"; import gql from "graphql-tag"; const CREATE_PRODUCT_MUTATION = gql` mutation CreateProduct($input: CreateProductInput!) { createOneProduct(input: $input) { id name } } `; const { formProps } = useForm({ resource: "products", meta: { gqlMutation: CREATE_PRODUCT_MUTATION }, });
1.0.9
Patch Changes
- #5330
7c8827b43d
Thanks @BatuhanW! - chore: upgrade nock library version to ^13.4.0
1.0.8
Patch Changes
- #5114
00a9252c5de
Thanks @alicanerdurmaz! - fixed:dataProvider.custom
uses diffrent client istance. From now on,dataProvider.custom
uses the same client istance as otherdataProvider
methods.
1.0.7
Patch Changes
- #5114
00a9252c5de
Thanks @alicanerdurmaz! - fixed:dataProvider.custom
uses diffrent client istance. From now on,dataProvider.custom
uses the same client istance as otherdataProvider
methods.
1.0.6
Patch Changes
-
#5022
80513a4e42f
Thanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
1.0.5
Patch Changes
-
#5022
80513a4e42f
Thanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
1.0.4
Patch Changes
- #4951
04837c62077
Thanks @aliemir! - - Update build configuration foresbuild
to use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
1.0.3
Patch Changes
- #4951
04837c62077
Thanks @aliemir! - - Update build configuration foresbuild
to use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
1.0.2
Patch Changes
-
#4824
0206dcb8828
Thanks @aliemir! - feat: initialize nestjs-query package.🎉🎉🎉 This is the initial release of our nestjs-query data provider. https://tripss.github.io/nestjs-query 🎉🎉🎉
Supported features:
- filters ✅
- sorters ✅
- offset pagination ✅
- offset connections ✅
- subscriptions ✅
Usage example:
import graphqlDataProvider, { GraphQLClient, liveProvider, } from "@refinedev/nestjs-query"; import { createClient } from "graphql-ws"; const API_URL = `https://api.nestjs-query.refine.dev/graphql`; const WS_URL = `wss://api.nestjs-query.refine.dev/graphql`; const client = new GraphQLClient(API_URL); const wsClient = createClient(WS_URL); export const dataProvider = graphqlDataProvider(client); export const liveProvider = liveProdiver(wsClient); export const App = () => ( <Refine dataProvider={dataProvider} liveProvider={liveProvider}> //... </Refine> );
1.0.1
Patch Changes
-
#4824
0206dcb8828
Thanks @aliemir! - feat: initialize nestjs-query package.🎉🎉🎉 This is the initial release of our nestjs-query data provider. https://tripss.github.io/nestjs-query 🎉🎉🎉
Supported features:
- filters ✅
- sorters ✅
- offset pagination ✅
- offset connections ✅
- subscriptions ✅
Usage example:
import graphqlDataProvider, { GraphQLClient, liveProvider, } from "@refinedev/nestjs-query"; import { createClient } from "graphql-ws"; const API_URL = `https://api.nestjs-query.refine.dev/graphql`; const WS_URL = `wss://api.nestjs-query.refine.dev/graphql`; const client = new GraphQLClient(API_URL); const wsClient = createClient(WS_URL); export const dataProvider = graphqlDataProvider(client); export const liveProvider = liveProdiver(wsClient); export const App = () => ( <Refine dataProvider={dataProvider} liveProvider={liveProvider}> //... </Refine> );