OpenPanel/packages/nestjs-query/CHANGELOG.md
Stefan Pejcic 8595a9f4e5 back
2024-05-08 19:58:53 +02:00

7.1 KiB

@refinedev/nestjs-query

1.1.1

Patch Changes

1.1.0

Minor Changes

  • #5409 0026fe34d0 Thanks @BatuhanW! - feat: add gqlQuery and gqlMutation support.

    Previously, @refinedev/nestjs-query package only supported GraphQL operations through meta.fields.

    Now we've added gqlQuery and gqlMutation fields in meta 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

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 other dataProvider 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 other dataProvider 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 for esbuild 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 for esbuild 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>
    );