parse-community / parse-community/parse-server

Unable to query rows with array keys which equals empty array []

Open
#6,514 13 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Issue Description

Couldn't find a way to query rows with array keys equal to empty array.
For example:
I have class 'Shelf' with key 'books' type of Array
I have 2 rows. First row has books = [ { Pointer }, { Pointer } ]. Second row has books = []

How do i query second row?

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

No file, test, or entry point is named in the issue. Start by locating Parse Server's query handling for array-valued keys and reproduce a query against one row with an empty array; done means the query reliably returns that row without changing results for non-empty arrays.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.