hey, I'm getting an error like this: `Field "creat...
# orm-help
k
hey, I'm getting an error like this:
Field "createdAt" is not defined by type PlaceCreateInput; did you mean createdBy?
and I'm not sure what it is about
n
You are including a field
createdAt
somewhere in a mutation where the type
PlaceCreateInput
appears. However, the type
PlaceCreateInput
does not expose this field.
k
how can I make it to expose it?
I have them defined in my
database.graphql
n
Please share more context how you set it up in the first place 🙂 Is this a mutation in your Prisma API, or is this a mutation in your GraphQL server?
k
but the generated prisma.graphql doeesn't have it
mutation in my GraphQL server
The id, createdAt and updatedAt fields are managed by Prisma and read-only in the exposed Prisma API (meaning they can not be altered via mutations).
k
are they the "reserved" field names?
n
Yes.
k
so they will be created automatically?
n
Yes.
k
oh ok, now I get it
thank you!
👍 1
works now!
thanks a lot once again!
👍 1
k
👍 thanks, I was going to ask where I can read more about it