This package contains schemas for SCSE Club projects.
In the package.json file in your app/package add the following:
{
// ...
"devDependencies": {
// ...
"schemas": "*",
// ...
}
}
Then use the schemas in your app/package's codebase as follows:
import { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
schema: 'src/packages/schemas/lib/cms.graphql',
// ...
};
export default config;
In the apps/cms
directory, run yarn generate:graphQLSchema
to generate the GraphQL schema.