Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

guog
Copy link
Contributor

@guog guog commented Apr 19, 2023

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
Copy link
Contributor Author

guog commented Apr 23, 2023

@AhmedElywa

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

Are the instructions and code clear?

Thanks

@AhmedElywa AhmedElywa merged commit 54d16da into paljs:main Apr 23, 2023
1 check passed
@AhmedElywa
Copy link
Collaborator

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants