A GraphQL data provider for react-admin (v5.x) built with Apollo Client, tailored for simple GraphQL APIs that follow a specific grammar (e.g., marmelab/json-graphql-server). It auto-configures CRUD operations via introspection queries. The package is actively maintained alongside react-admin, with releases matching the main library. Differentiators: zero-config setup for simple schemas, supports filtering with operators like _lt, _gt, and bulk updates. v5 is ESM-only, requires GraphQL >=15.6 and ra-core >=5.0.
npm install ra-data-graphql-simpleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows async initialization of the GraphQL data provider with Apollo client options and integration into react-admin.
Update custom buildQuery wrappers to match new signature: (fetchType, resource, params) => ...
Use async/await or .then() to get the data provider. Pass options directly as object.
Create a custom ApolloClient with auth middleware and pass via client option: buildGraphQLProvider({ client: myClient })Use <ReferenceField source="author.id" reference="User"> instead of source="author".
Switch to import syntax. If using CommonJS, use dynamic import: const pkg = await import('ra-data-graphql-simple');npm install graphql
Add "type": "module" to package.json or use dynamic import: const pkg = await import('ra-data-graphql-simple');Use default import: import buildGraphQLProvider from 'ra-data-graphql-simple'
Check clientOptions.uri and ensure the endpoint is reachable; if auth needed, pass a custom client with auth middleware