-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
.equalTo
no working in string Arrays when using PostgreSQL
#7307
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
Thanks for reporting. I classified this as a bug. To help determine the severity of this bug:
|
Thanks for the update. The only workaround I found was going back to MongoDB. However, as the last MongoDB that has a usable license is soon at its EOL, this is only a temporal fix. |
Can you explain further? |
(Just noticed that my answer somehow wasn't saved.) Mongo v3.6 will expire in April. Starting with v4.0 its licence changes so that
It's not really clear where "public available MonogoDB aaS" starts and ends (I'd argue that parse with mongo is a a MongoDB aaS). Therefore I (and many others) will avoid MongoDB >= v4. |
Parse Server does not fall into this category, it is not a DBaaS, nor are apps built with Parse Server, unless the app is a DBaaS product. An example of MongoDB aaS would be ObjectRocket or the former mLab. These license changes have their roots in several historic precedents in the open source ecosystem, where cloud service providers offer open sourced software for-profit without contributing back to the original open source project. A recent example has been the discussion around Elastic Search offered by cloud service providers. You may inquire directly with MongoDB whether your product falls into that category or not. Disclaimer: this is a personal opinion and does not constitute legal advice or an official statement from the Parse Platform Organization. |
On a separate note I should mention that the next version of Parse Server will naturally drop support for MongoDB 3.6 as it reached its EoL. You may want to adapt your app to MongoDB >= 4.0 rather sooner than later. |
|
Better workaround: (I just stumpled over this in the docs. Sorry for not investigating further) |
Could you please post a link to the specific section in the docs? |
New Issue Checklist
Issue Description
When using
equalTo
on an Array of Strings with a PostgreSQL DB, an error gets thrown.Might be related to #6403
Seems to be an encoding issue for Postegres queries.
Steps to reproduce
Array
Field and add strings (it's stored asjsonb
on the db)equalTo
Using parse/node
on the Parse Dashboard:
Output:
using
Server
4.5.0
5.10.23-1-MANJARO (localhost)
localhost
Database
Postgres
13
localhost
Client
parse/node / parse dashboard
3.1 / 2.1.0
Logs
Parse Server Logs:
The text was updated successfully, but these errors were encountered: