From 2244fb05233705631d9579280b63204560273958 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Mon, 20 Mar 2023 22:01:06 +0530 Subject: [PATCH] chore: add numberScalarMode for schema gen as well --- packages/hoppscotch-backend/src/gql-schema.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/hoppscotch-backend/src/gql-schema.ts b/packages/hoppscotch-backend/src/gql-schema.ts index dc0121f5c..eb4879a6a 100644 --- a/packages/hoppscotch-backend/src/gql-schema.ts +++ b/packages/hoppscotch-backend/src/gql-schema.ts @@ -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,