[CSHARP-1732] Updating particuler sub documents from array of sub documents Created: 03/Aug/16  Updated: 05/Apr/19  Resolved: 03/Aug/16

Status: Closed
Project: C# Driver
Component/s: API
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Kirti [X] Assignee: Unassigned
Resolution: Done Votes: 0
Labels: question
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 10



 Description   

Hi,

Please guide us with C# code snippet which helps to update some sub documents based on filter from list of sub documents.

Lets assume if main document has element called Addresses field with 4 sub documents of address.

So now we need to update only one address which is mailing address.



 Comments   
Comment by Craig Wilson [ 03/Aug/16 ]

Kirti,

JIRA is generally reserved for bugs and feature requests. Our mailing list is a good place to ask questions, or stackoverflow.

The answer to your question is to use the positional update operator.

Craig

Generated at Wed Feb 07 21:40:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.