Hi, how can I `connectOrCreate` where multiple fie...
# orm-help
a
Hi, how can I
connectOrCreate
where multiple fields match. Or how can I use
where: {AND: [{},{}]}
operation inside
connectOrCreate
?
n
Hey 👋 Are you getting any errors while using AND in the
connectOrCreate
where clause? Can you share your schema file and query which you are trying to invoke? By default fields in where clause are
AND
so there is no need to explicitly add AND condition if there’s no need.
a
I was getting an error with AND. Now when I matching on a single field it works fine. I will try multiple matches without AND and post the error if I got one.
👍 1