-
-
Notifications
You must be signed in to change notification settings - Fork 597
PostgresSQL error - Syntax error at the end of input - Aggregation #1109
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
Comments
The aggregate framework as with much of the API is built around mongo. With that we tried to bind the mongo syntax to PG as much as we could. Count should work there is a test case for it. |
No it does not. When // This aggregation works fine
Where as this does not.
Is there any test case to validate objectId working fine with Postgres aggregation? @dplewis |
Moving the issue to Parse Server repo |
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
The below aggregation query does not work on POSTGRES while the same works with MONGODB
Steps to reproduce
Run the below query inside a cloud function, with user and media being string type columns.
Expected Results
Array of data with count and unique media and user values
Actual Outcome
It throw an error
Test Case
Environment Setup
Server
Operating System: AWS, Amazon Linux
JS SDK
Logs/Trace
The text was updated successfully, but these errors were encountered: