Skip to content

And Query constraints #546

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

Closed
gaoljie opened this issue Jan 29, 2018 · 3 comments
Closed

And Query constraints #546

gaoljie opened this issue Jan 29, 2018 · 3 comments

Comments

@gaoljie
Copy link

gaoljie commented Jan 29, 2018

I tried to use 'and' query by following the guidance http://docs.parseplatform.org/js/guide/#and-ed-query-constraints
var mainQuery = Parse.Query.and( Parse.Query.or(age16Query, age18Query), Parse.Query.or(friends0Query, friends2Query) );

but it throws the error
vue.runtime.esm.js?23ec:1695 TypeError: __WEBPACK_IMPORTED_MODULE_1_parse___default.a.Query.and is not a function

and I did not find 'and' method in http://parseplatform.org/Parse-SDK-JS/api/v1.11.0/ either.

@dplewis
Copy link
Member

dplewis commented Jan 30, 2018

@gaoljie There is an open PR. #367

It should be merged soon

@gaoljie
Copy link
Author

gaoljie commented Feb 5, 2018

Thanks! @dplewis

@dplewis
Copy link
Member

dplewis commented Mar 10, 2018

Parse.Query.and was add in 1.11.1. Please update to the latest version of Parse-Server.

@dplewis dplewis closed this as completed Mar 10, 2018
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

2 participants