Add all repos
This commit is contained in:
parent
faa12c60bc
commit
8a91c9b89b
369 changed files with 29047 additions and 28 deletions
17
metamigo-frontend/lib/dataprovider.ts
Normal file
17
metamigo-frontend/lib/dataprovider.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import pgDataProvider from "ra-postgraphile";
|
||||
import schema from "./graphql-schema.json";
|
||||
|
||||
export const metamigoDataProvider = async (client) => {
|
||||
const graphqlDataProvider = await pgDataProvider(
|
||||
client,
|
||||
// @ts-expect-error: Missing property
|
||||
{},
|
||||
{ introspection: { schema: schema.data.__schema } }
|
||||
);
|
||||
|
||||
const dataProvider = async (type, resource, params) => {
|
||||
return graphqlDataProvider(type, resource, params);
|
||||
};
|
||||
|
||||
return dataProvider;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue