chore: add numberScalarMode for schema gen as well

This commit is contained in:
Andrew Bastin
2023-03-20 22:01:06 +05:30
parent c611b39f52
commit 2244fb0523

View File

@@ -74,7 +74,9 @@ export async function emitGQLSchemaFile() {
`Generating Schema against ${RESOLVERS.length} resolvers and ${SCALARS.length} custom scalars`,
);
const schema = await gqlSchemaFactory.create(RESOLVERS, SCALARS);
const schema = await gqlSchemaFactory.create(RESOLVERS, SCALARS, {
numberScalarMode: 'integer',
});
const schemaString = printSchema(schema, {
commentDescriptions: true,