You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model Color {
createdAt DateTime @default(now())
id String @default(cuid()) @id
label String?
name String @unique
updatedAt DateTime @updatedAt
item Item[]
itemvariants ItemVariants[]
orderitem OrderItem[]
}
How is filtering/ordering now handled in nexus? Also as non-nullable items now need to be explicitly specified do I do so by simply stating for example t.model.nonNull.id()?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
package.json
So attempting to import objectType from
nexus
instead of@nexus/schema
flags an error warning on filtering and ordering:types/models/Colors.ts
prisma/schema.prisma
How is filtering/ordering now handled in nexus? Also as non-nullable items now need to be explicitly specified do I do so by simply stating for example
t.model.nonNull.id()
?Beta Was this translation helpful? Give feedback.
All reactions