paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
679 stars 55 forks source link

fix(nexus): matches the nexus generated bigint type #296

Closed guog closed 1 year ago

guog commented 1 year ago

schema.prisma file

model FieldDemo {
  id          String    @id @default(cuid())
  theBigInt   BigInt?   @default(0)
}

run prisma generate && pal g

generated type.ts file

import { objectType } from 'nexus'

export const FieldDemo = objectType({
  nonNullDefaults: {
    output: true,
    input: false
  },
  name: 'FieldDemo',
  definition(t) {
    t.string('id')
    t.nullable.bigint('theBigInt') //<--this line
  }
})

tsc console error: t.nullable.bigint is not a function

guog commented 1 year ago

@AhmedElywa

hi, what else do i need to do to merge.

Are the instructions and code clear?

Thanks

AhmedElywa commented 1 year ago

@AhmedElywa

hi, what else do i need to do to merge.

Are the instructions and code clear?

Thanks

Everything is good I was on a vacation last week