Hey! You are stating in the documentation that ```...
# orm-help
h
Hey! You are stating in the documentation that
Copy code
The fields annotated with the @id, @createdAt and @updatedAt directives are managed by Prisma and read-only in the exposed Prisma API.
however the generated <Model>CreateInput includes the @id field and a new record can be inserted by custom id. Is it a bug or the documentation is outdated?
j
@Id
has a custom id support
if you leave it like that, it'll be handled for you
h
Yes, we generate those as you can also bring in your custom ID
h
But then the documentation is incorrect while updatedAt and createdAt cannot be inserted/updated.
And if I parse my datamodel with your prisma-datamodel.DefaultParser the isReadOnly is true for the ID field too.