My query works in playground but not in my app: `...
# prisma-whats-new
k
My query works in playground but not in my app:
Copy code
query carInvoices2($invoiceFilter: InvoiceFilter) {
  allInvoices(filter: $invoiceFilter) {
    id
    paid
    trip {
      id
      car {
        id
        model
      }
    }
  }
}
with args:
Copy code
"invoiceFilter": {
          "trip": {
            "car": {
              "id":"cj9d1mdmu5i24016862c59t6i"
            }
          } 
  }
In the app I get the invoices of all the cars instead of just the one ? Whats going on ?
a
Are you sure that the query fired actually contains that filter? Because if that value is undefined, the filter is not applied...
k
can’t see any possibility for that not containing the filter..
Found out what was wrong. Forgot to put the filter inside variables {} 🙈
a
I thought so 😄