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
Hi and thanks for a very well written and handy python package.
I have a question on how to query for a null value.
i have a schema with a Runlog table with a Scenario field that is optional. Thus it can and will be null sometimes.
I have the pair of Model and Scenario a unqiue pair as @@unique([Model, Scenario]).
When i run this command:
existingrunlogRecord = await prisma.runlog.find_unique(where={'Model_Scenario': {'Model': modelName, 'Scenario': None}})
i get the following error:
"prisma.errors.MissingRequiredValueError: where.Model_Scenario.Scenario: A value is required but not set"
Am i doing this wrong or how would i achieve the desired outcome?
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
-
Hi and thanks for a very well written and handy python package.
I have a question on how to query for a null value.
i have a schema with a Runlog table with a Scenario field that is optional. Thus it can and will be null sometimes.
I have the pair of Model and Scenario a unqiue pair as @@unique([Model, Scenario]).
When i run this command:
existingrunlogRecord = await prisma.runlog.find_unique(where={'Model_Scenario': {'Model': modelName, 'Scenario': None}})
i get the following error:
"prisma.errors.MissingRequiredValueError:
where.Model_Scenario.Scenario
: A value is required but not set"Am i doing this wrong or how would i achieve the desired outcome?
Best regards
1udvig
Beta Was this translation helpful? Give feedback.
All reactions