7.1 KiB
@refinedev/nestjs-query
1.1.1
Patch Changes
- #5425
190af9fce2Thanks @aliemir! - Updated@refinedev/corepeer dependencies to latest (^4.46.1)
1.1.0
Minor Changes
-
#5409
0026fe34d0Thanks @BatuhanW! - feat: addgqlQueryandgqlMutationsupport.Previously,
@refinedev/nestjs-querypackage only supported GraphQL operations throughmeta.fields.Now we've added
gqlQueryandgqlMutationfields inmetaobject.You can utilize these fields along with
graphql-tagpackage 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
7c8827b43dThanks @BatuhanW! - chore: upgrade nock library version to ^13.4.0
1.0.8
Patch Changes
- #5114
00a9252c5deThanks @alicanerdurmaz! - fixed:dataProvider.customuses diffrent client istance. From now on,dataProvider.customuses the same client istance as otherdataProvidermethods.
1.0.7
Patch Changes
- #5114
00a9252c5deThanks @alicanerdurmaz! - fixed:dataProvider.customuses diffrent client istance. From now on,dataProvider.customuses the same client istance as otherdataProvidermethods.
1.0.6
Patch Changes
-
#5022
80513a4e42fThanks @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
80513a4e42fThanks @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
04837c62077Thanks @aliemir! - - Update build configuration foresbuildto use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
1.0.3
Patch Changes
- #4951
04837c62077Thanks @aliemir! - - Update build configuration foresbuildto use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
1.0.2
Patch Changes
-
#4824
0206dcb8828Thanks @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
0206dcb8828Thanks @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> );