parse-community / parse-community/parse-server

Support subkey index for Parse Schema indexes

Open
#7,711 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

New Feature / Enhancement Checklist
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.