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

Postgres doesn't support this query type yet {"$nin":[]} #4727

Closed
repertory opened this issue Apr 16, 2018 · 9 comments · Fixed by #5254
Closed

Postgres doesn't support this query type yet {"$nin":[]} #4727

repertory opened this issue Apr 16, 2018 · 9 comments · Fixed by #5254
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@repertory
Copy link

Issue Description

request:

users: RELATION <_USER> and this relation has no rows

where: {users: {$exists: false, $ne: {__type: "Pointer", className: "_User", objectId: "hXqhAUjRz2"}}}

response:

{"code":119,"error":"Postgres doesn't support this query type yet {\"$nin\":[]}"}
@dplewis
Copy link
Member

dplewis commented May 3, 2018

Can you get the logs when running with VERBOSE=1?

Or provide a query?

@repertory
Copy link
Author

I have switched to mongo

@dplewis
Copy link
Member

dplewis commented May 16, 2018

@repertory Sorry we took so long. Thank you for using parse. If you want to help with the issue you opened that would be great, in case anybody else would run into the issue.

@dplewis dplewis closed this as completed May 16, 2018
@CoderickLamar
Copy link
Contributor

Hoping we can get this re-opened. If someone can direct me in the right direction on this, I can try and take a look

@dplewis
Copy link
Member

dplewis commented Nov 9, 2018

@CoderickLamar There isn't enough info in the original post and no logs posted. Can't reproduce and this issue may have already been fixes.

@CoderickLamar
Copy link
Contributor

We're experiencing the same issue on our end. Let me see if I can grab more details and update this post with our info

@dplewis dplewis reopened this Nov 9, 2018
@dplewis dplewis added the type:bug Impaired feature or lacking behavior that is likely assumed label Nov 9, 2018
@dplewis
Copy link
Member

dplewis commented Nov 14, 2018

@CoderickLamar Are you still having this issue?

@jwenBai
Copy link

jwenBai commented Dec 19, 2018

I also have this issue. It works fine when the array is not empty, but when the array is empty it causes the issue.

the query that I used:

const testQuery = new Parse.Query('testTable');
  testQuery.notContainedIn('value', []);
  testQuery.find().then((testObj) => {
    console.log(testObj);
  });

and the error message :

debug: PG: find testTable { value: { '$nin': [] }, _rperm: { '$in': [ null, '*' ] } } skip=undefined, limit=100, , keys=undefined
error: Error generating response. ParseError {
  code: 119,
  message: 'Postgres doesn\'t support this query type yet {"$nin":[]}' } code=119, message=Postgres doesn't support this query type yet {"$nin":[]}
error: Postgres doesn't support this query type yet {"$nin":[]} code=119, message=Postgres doesn't support this query type yet {"$nin":[]}

@vijay259
Copy link

vijay259 commented Sep 3, 2020

Make sure that { '$nin': [] } array should not empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants