Hi everyone. I have a setup with `prisma2`, `nexu...
# orm-help
n
Hi everyone. I have a setup with
prisma2
,
nexus
and
graphql-yoga
. I would like to query for multiple Posts for which I already know their
id
. Photon seems to support this with e.g.
photon.posts.findMany({where: {OR: [{id: "post1"}, {id: "post2"}]}});
and by adding
t.crud.findManyPost({alias: "posts"});
I can query for multiple posts, but the only arguments the graphQL query takes are the default ones (
skip
to
last
). Is there a simple way to enable e.g.
where
? Thanks for your feedback!
Figured it out. You can enable
where
by setting
t.crud.findManyPost({alias: "posts", filtering: true});
Other (boolean) options I learned about are
ordering
and
pagination
💯 1