We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently the following id fields map to String types in GraphQL Schema. But they should instead map to ID types instead.
model A { id String @id @default(uuid()) } model B { id String @id @default(cuid()) }
The text was updated successfully, but these errors were encountered:
Good to hear, I am currently using an interfaceType for these basic fields:
import { schema } from 'nexus' schema.interfaceType({ name: 'IdAndDates', definition(t) { t.id('id', { nullable: false, resolve: (root) => root.id, }) t.date('createdAt', { nullable: false, resolve: (root) => root.createdAt, }) t.date('updatedAt', { nullable: false, resolve: (root) => root.updatedAt, }) t.resolveType(() => null) }, })
Sorry, something went wrong.
No branches or pull requests
Currently the following id fields map to String types in GraphQL Schema. But they should instead map to ID types instead.
The text was updated successfully, but these errors were encountered: