parse-community / parse-community/parse-server
Support subkey index for Parse Schema indexes
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 21.4k
- Forks
- 4.8k
- Avg merge
- 7h 45m
- Merged PRs (30d)
- 11
Description
New Feature / Enhancement Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
Current Limitation
Parse Server do not support via Parse Schema the subkey index
Feature / Enhancement Description
Allow subkey index at parse index validation
Example Use Case
{indexes: { 'anArrayField.aKeyIntoAnElement': 1} }
Mongo example: https://docs.mongodb.com/manual/core/index-multikey/
Alternatives / Workarounds
Use the mongo client directly
3rd Party References
Mongo example: https://docs.mongodb.com/manual/core/index-multikey/
It seems that postgres support the feature but not sure if it will work: https://stackoverflow.com/questions/17807030/how-to-create-index-on-json-field-in-postgres
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating Parse Schema index validation and trace how index definitions are handled for MongoDB and PostgreSQL. Compare the requested anArrayField.aKeyIntoAnElement index with the linked MongoDB multikey reference and verify what support PostgreSQL provides; done means subkey indexes are accepted and created correctly for supported databases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, mongodb, postgres
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100