I updated my schema and made a field optional: ``...
# orm-help
a
I updated my schema and made a field optional:
Copy code
lttv          Float?
But when I try to create an item with this field absent or set to null, I get the following error:
Copy code
→ 124 const rate = await prisma.rate.create(
  Failed to validate the query: `Unable to match input value to any allowed input type for the field. Parse errors: [Query parsing/validation error at `Mutation.createOneRate.data.RateCreateInput.lttv`: A value is required but not set., Query parsing/validation error at `Mutation.createOneRate.data.RateUncheckedCreateInput.lttv`: A value is required but not set.]` at `Mutation.createOneRate.data`
    at cb (/Users/adrianduyzer/Mesa/www/transervice/bot/node_modules/@prisma/client/runtime/index.js:38683:17) {
  code: 'P2009',
  clientVersion: '3.6.0',
  meta: {
    query_validation_error: 'Unable to match input value to any allowed input type for the field. Parse errors: [Query parsing/validation error at `Mutation.createOneRate.data.RateCreateInput.lttv`: A value is required but not set., Query parsing/validation error at `Mutation.createOneRate.data.RateUncheckedCreateInput.lttv`: A value is required but not set.]',
    query_position: 'Mutation.createOneRate.data'
  }
}
I’ve tried regenerating the schema, regenerating the client, etc., to no avail. Any tips for me on this?