Skip to content

How to use postgresql array types in where clauses? #9794

Discussion options

You must be logged in to vote

I think I figured it out, I needed to pass in something that was an array literal like:

query MyQuery {
  ipaddresses(where: {ip_list: {_contains: "{192.169.1.1}"}}) {
    ip_list
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ScottChapman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant