How would I conditionally add a conditional for a ...
# orm-help
b
How would I conditionally add a conditional for a query? I have this but it queries with the conditional or not at all:
Copy code
query GET_MESSAGES($community: ID, $isGeneral: Boolean!) {
  messages
  (where: {community: {id: $community}}) @skip(if: $isGeneral)
  {
    text 
    id
  }
}