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

Array in where #125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

gueno-dev
Copy link
Contributor

Hello, actually we can't do that :

nodes = await instance.all('Label', { id: [1, 2, 3] });

because the '=' operator is set by default there :

args = [args[0], _Where.OPERATOR_EQUALS, args[1]];

I have just added type control of the second argument to use IN operator in this case.

Thanks !

Copy link

@kaeross kaeross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement, it would be good to add a test for this

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.

None yet

3 participants