From 451d26ce6a5ecf922ae33879dbd2741c8849bd70 Mon Sep 17 00:00:00 2001 From: Aiji Uejima Date: Thu, 24 Nov 2022 22:50:48 +0900 Subject: [PATCH] fix: add BigInt scalar to typedefs (#23) * fix: add BigInt scalar to typedefs * test: update snapshot Co-authored-by: Tyler Jones --- src/__tests__/__snapshots__/helpers.test.ts.snap | 1 + src/helpers/makeTypeDefs.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/__tests__/__snapshots__/helpers.test.ts.snap b/src/__tests__/__snapshots__/helpers.test.ts.snap index eb46a05..f272c3d 100644 --- a/src/__tests__/__snapshots__/helpers.test.ts.snap +++ b/src/__tests__/__snapshots__/helpers.test.ts.snap @@ -5,6 +5,7 @@ exports[`makeTypeDefs > Check the generated graphql schema. 1`] = ` scalar Any scalar DateTime scalar Json + scalar BigInt enum UserScalarFieldEnum { id email name teamId createdAt updatedAt diff --git a/src/helpers/makeTypeDefs.ts b/src/helpers/makeTypeDefs.ts index 9a0b945..4b6061b 100644 --- a/src/helpers/makeTypeDefs.ts +++ b/src/helpers/makeTypeDefs.ts @@ -40,6 +40,7 @@ export const makeTypeDefs = (dmmf: DMMF.Document) => { scalar Any scalar DateTime scalar Json + scalar BigInt ${enums} ${types} `;