[DOCS-15026] [Realm] wrong JSON expression syntax for arrays Created: 12/Jan/22  Updated: 04/Jan/23  Resolved: 14/Jan/22

Status: Closed
Project: Documentation
Component/s: Realm
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Mansoor Omar Assignee: Nicholas Larew
Resolution: Done Votes: 0
Labels: realm
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 2 years, 4 weeks ago
Story Points: 2

 Description   

https://docs.mongodb.com/realm/sync/data-access-patterns/permissions/#sync-rules-and-permissions

 

One example of this is:

 

{
 "%%user.id": [
 "5f4863e4d49bd2191ff1e623",
 "5f48640dd49bd2191ff1e624",
 "5f486417d49bd2191ff1e625"
 ]
}

 

Which should be:

{
 "%%user.id": {
 "$in": [
 "5f4863e4d49bd2191ff1e623",
 "5f48640dd49bd2191ff1e624",
 "5f486417d49bd2191ff1e625"
 ]
 }
}

 

 



 Comments   
Comment by Nicholas Larew [ 12/Jan/22 ]

https://github.com/mongodb/docs-realm/pull/1555

Generated at Thu Feb 08 08:11:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.