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

3.3 KiB



refine is an open-source, headless React framework for developers building enterprise internal tools, admin panels, dashboards, B2B applications.

It eliminates repetitive tasks in CRUD operations and provides industry-standard solutions for critical project components like authentication, access control, routing, networking, state management, and i18n.

NestJS Query data provider integration for refine

Nestjs-query

refine is headless by design, offering unlimited styling and customization options. Moreover, refine ships with ready-made integrations for Ant Design, Material UI, Mantine, and Chakra UI for convenience.

refine has connectors for 15+ backend services, including REST API, GraphQL, and popular services like Airtable, Strapi, Supabase, Firebase, and NestJS.

Installation & Usage

npm install @refinedev/nestjs-query graphql-tag graphql-ws
import dataProvider, {
  GraphQLClient,
  liveProvider,
} from "@refinedev/nestjs-query";

import { createClient } from "graphql-ws";

const App = () => {
  return (
    <Refine
      dataProvider={dataProvider(new GraphQLClient("API_URL"))}
      liveProvider={liveProvider(createClient({ url: "WS_URL" }))}
      /* ... */
    >
      {/* ... */}
    </Refine>
  );
};

Documentation