Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore: add numberScalarMode for schema gen as well

Andrew Bastin2244fb052337
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,