How to properly use @filter(op: "regex")
?
#587
-
From docs and other discussions, it looks like
..which suggests that there wasn't any value passed to it. However, through trial and error i noticed that removing the filter but leaving
..which, contrary to the previous message, implies that the removed filter did actually "use" the regex value. Hence the question: what is the proper way to use
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think there's a minor typo in the query that means the argument was never actually passed: elenakrittik/gdtk#49 The query doesn't actually validate against the schema with this typo, since the |
Beta Was this translation helpful? Give feedback.
I think there's a minor typo in the query that means the argument was never actually passed: elenakrittik/gdtk#49
The query doesn't actually validate against the schema with this typo, since the
@filter
directive doesn't take avalues
key per its schema definition. But the query parser on Trustfall's side was a little too permissive here and didn't raise that as an error. I'll open an issue for that — would you be open to putting together a PR to fix that by any chance?