mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-06 08:18:08 +00:00
15 lines
445 B
TypeScript
15 lines
445 B
TypeScript
import { loader } from 'graphql.macro';
|
|
|
|
import gql from 'graphql-tag';
|
|
import { buildASTSchema } from 'graphql';
|
|
|
|
const entitySchema = loader('../../../datahub-graphql-core/src/main/resources/entity.graphql');
|
|
const searchSchema = loader('../../../datahub-graphql-core/src/main/resources/search.graphql');
|
|
|
|
const graphQLSchemaAST = gql`
|
|
${entitySchema}
|
|
${searchSchema}
|
|
`;
|
|
|
|
export const graphQLSchema = buildASTSchema(graphQLSchemaAST);
|