Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle input empty array for _in and _nin operators #1075

Closed
rakeshkky opened this issue Nov 20, 2018 · 0 comments · Fixed by #1076
Closed

handle input empty array for _in and _nin operators #1075

rakeshkky opened this issue Nov 20, 2018 · 0 comments · Fixed by #1076
Assignees
Labels
c/server Related to server e/quickfix can be wrapped up in few hours k/bug Something isn't working

Comments

@rakeshkky
Copy link
Member

query users($userIds: [Int!]!) {
  user(where: {id: {_in: $userIds}}) {
    id
    email
  }
}

variables:-

{
  "userIds": []
}

Query gives postgres-error from alpha-29

@rakeshkky rakeshkky added k/bug Something isn't working c/server Related to server e/quickfix can be wrapped up in few hours labels Nov 20, 2018
@rakeshkky rakeshkky added this to the v1.0.0-alpha30 milestone Nov 20, 2018
@rakeshkky rakeshkky self-assigned this Nov 20, 2018
rakeshkky added a commit to rakeshkky/graphql-engine that referenced this issue Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/server Related to server e/quickfix can be wrapped up in few hours k/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant