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
Scalars['ID'] is a string, but the id should be a number. I would expect it to be Scalars['Int'] instead.
This also happens for singletons, because isSingleton: true forces db.idField.type to be Int.
It's not super noticeable normally, but if you start using the generated types in your schema, you'll notice that there is a red squiggly on all your list definitions. The error you get will usually contain the string The types of 'context.db' are incompatible between these types..
The text was updated successfully, but these errors were encountered:
To reproduce, create the following schema:
This should result in the
.keystone/types.ts
file containing a type calledtestfieldWhereUniqueInput
.It does, but the type of the id field is incorrect:
Scalars['ID']
is a string, but the id should be a number. I would expect it to beScalars['Int']
instead.This also happens for singletons, because
isSingleton: true
forcesdb.idField.type
to beInt
.It's not super noticeable normally, but if you start using the generated types in your schema, you'll notice that there is a red squiggly on all your list definitions. The error you get will usually contain the string
The types of 'context.db' are incompatible between these types.
.The text was updated successfully, but these errors were encountered: