Ahoy: I'm trying to write a filter query which nee...
# prisma-whats-new
j
Ahoy: I'm trying to write a filter query which needs to test for the non-existence of a one-to-many relationship, I can use
null
in the console... however when I try and do this through Apollo it throws expected type errors (eg it doesn't like
null
values, because the schema is a relationship). Does anyone have any experience with this?
n
what's the exact error message?
j
Copy code
{ Error: GraphQL error: Argument 'filter' expected type 'AspectFilter' but got: {isActive: true, parent: ""}. Reason: 'parent' Expected 'AspectFilter', found not an object. (line 2, column 22):
n
parent
is not
null
, but the empty String
j
right: happens with both sorry (let me find the null error as well)
Copy code
{ Error: The inline argument "parent" of kind "NullValue" is not supported. Use variables instead of inline arguments to overcome this limitation.
j
Perfect... got it. Working good now.
Thanks
n
cheers! 🙂