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

nin in jsonpath not working in mongodb-shell-extensions #12

Open
senthinil opened this issue Apr 1, 2020 · 1 comment
Open

nin in jsonpath not working in mongodb-shell-extensions #12

senthinil opened this issue Apr 1, 2020 · 1 comment

Comments

@senthinil
Copy link

I am using old mongodb-shell-extensions from https://raw.github.com/gabrielelana/mongodb-shell-extensions/master/released/mongorc.js is there any updated ones, please suggest. I am not able to use nin and in operators in jsonpath, please help how to use this library.

For Example I tried using jsonPath :

var jsonPath = "$.title[*].titleText[?(@.titleText nin ["Tomorrow",""])]"
var obj = {
title : [
{
titleText : ["Tomorrow abc "]
}
]
}

jsonpath(obj,jsonPath)
Obtained no result

Regards

Kris

@senthinil
Copy link
Author

Any updates on this issue

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

No branches or pull requests

1 participant