How to make a filter required using nexus-prisma-plugin? #1033
Unanswered
HendrikJan
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to filter my query results.
My code looks like this:
This query works:
But I would like to run a query like this, and I would like the year_id to be required:
Is there an easy way a achieve this?
I tried
t.crud.programs({ filtering: true })
, but this seems not to do anything.UPDATE:
I found out that using
t.crud.programs({ filtering: true })
enables filtering like this:One thing left to find out: how can I make "year_id" required.
(I'll update the discussion title to reflect what I want to find out now)
Beta Was this translation helpful? Give feedback.
All reactions