Closed docelic closed 2 years ago
Not sure why it operates differently when passed in the query. The where
helper was a contribution, you're welcome to submit a PR with a fix. Generally I don't like open ended arguments like where
for GraphQL.
Hm, while it doesn't accept strings, it does accept hashes directly, like:
listOfThings( where: { name: { like: "%test%" }})
So I believe there's nothing left to be done here. Thanks.
Hello,
When I pass
where:
condition as query variable, everything works as expected. E.g.:But when passing the condition in-place as a string, like
where: "{ \"name\": { ... } }"
, thenoptions.where
gets parsed incorrectly and results in it being split on every character:What's the reason for this, and can the where condition be passed in-place in any way?
Thanks.