这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@rakeshkky
Copy link
Member

Description

What component does this PR affect?

  • Server
  • Console
  • CLI
  • Docs
  • Community Content
  • Build System

Requires changes from other components? If yes, please mark the components:

  • Server
  • Console
  • CLI
  • Docs
  • Community Content
  • Build System

Related Issue

fix #1075

Solution and Design

For _in operator if empty array is given then consider it as false.
Vice versa for _nin operator.

Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Docs update
  • Community content

Checklist:

  • I have read the contributing guide and my code conforms to the guidelines.
  • This change requires a change in the documentation.
  • I have updated the documentation accordingly.
  • I have added required tests.

@rakeshkky rakeshkky requested a review from 0x777 November 20, 2018 17:27
@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-1076.herokuapp.com

@0x777 0x777 merged commit 030f094 into hasura:master Nov 21, 2018
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-1076.herokuapp.com is deleted

@mattjslaton
Copy link

mattjslaton commented Sep 23, 2021

_nin is returning values, I want to only return the fields that does no contain what is mentioned inside of the json that equals _nin.

so if my jsonb has ["taco"] and I want to exclude all results that mention ["taco"] in that jsonb, I use _nin, but _nin is returning results all results ["taco"] and ones without ["taco"]. and then when I try the opposite using _in all the results are gone, even the ones that do not contain ["taco"], so it is an empty query return or [] that is returned, it hides all results the ones that do not contain ["taco"] and ones that do when using _in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

handle input empty array for _in and _nin operators

4 participants