Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow nested arrays to be constructed client-side, relying on server-…
…side validation While nested arrays aren't allowed in documents, they are allowed for Where-In queries, where the query needs to express "the value of the field should be one of these arrays". In an ideal world we'd only permit that for the query rather than document construction, but that's relatively hard to weave through the code... whereas just allowing it client-side and then preventing it server-side is simple. Note that clients can already construct nested arrays by creating their own Value objects, so the server-side validation is required there anyway. Fixes #5007.
- Loading branch information
Showing
3 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters