Can anyone by chance tell me what I have wrong her...
# orm-help
b
Can anyone by chance tell me what I have wrong here on this query, it works until I add in the owner part and I'm sure I don't have the syntax right:
Copy code
query Snakes{
  snakes(
    where: {
      OR: [
        {name_contains: "pie"}
        {description_contains: "pie"}
      ]
      AND: [
        {owner: {id: "someuseridhere"}}
      ]
    }
  ) { id name}
}
to clarify each snake object has a owner that is a User type
nvm it was right just had the wrong user ID I was testing with
n
is this fixed?
b
yea that code worked I just was using the wrong userid