Strawberry/GraphQL filter syntax porting in Netbox 4.0 #17236
Unanswered
ee-github
asked this question in
Help Wanted!
Replies: 2 comments
-
To add: I suppose I can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Has anyone been able to move fw on this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
Can anyone suggest the correct filter syntax in the new GraphQL implementation to filter devices by checking if their name contains any of a list of strings (possible substrings of the device name)? This works in Netbox 3.0 with the following query and variables:
The above returns data for "switch-x1, switch-x2, router-a5..."
What would be the equivalent in the new Strawberry implementation?
The
in_list
operator seems to only match on exact strings. So this doesn't work:And the
i_contains
operator only seems to take a single string, not a list.Is anyone aware of any way to chain these two together, or another solution?
Thanks in advance. Any help appreciated.
Beta Was this translation helpful? Give feedback.
All reactions