0.0.4 • Published 7 months ago

ra-strapi-v4-graphql v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

GraphQL Strapi v4 Provider For React-Admin

GraphQL Strapi v4 Provider for React Admin.

Installation

npm i ra-strapi-v4-graphql

Usage

import * as React from "react";
import { Admin, Resource } from "react-admin";
import { buildProviders } from 'ra-strapi-v4-graphql';

import { PostList } from "./posts";

const { authProvider, dataProvider } = buildProviders({
  url: 'http://localhost:1337/graphql',
});

const App = () => (
  <Admin authProvider={authProvider} dataProvider={dataProvider}>
    <Resource name="posts" list={PostList} />
  </Admin>
);

License

This data provider is licensed under the MIT License.