Get document deletion structure
Forms data structure for update
- Parameters
- Advanced call ?
Function GetDocumentDeletionStructure(Val Filter, Val Count = 0, Collation = Undefined) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Filter | --query | Structure Of KeyAndValue | ✔ | Document filter |
| Count | --limit | Number | ✖ | Deletion limit: 1 > first document, 0 > all documents |
| Collation | --cltn | Structure Of KeyAndValue | ✖ | Special field comparison rules |
Returns
Structure - Get document deletion structure
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Filter = New Structure("stringField,doubleField", "Text", 999);
Result = OPI_MongoDB.GetDocumentDeletionStructure(Filter, 1); // Array or single
Result
{
"q": {
"stringField": "Text",
"doubleField": 999
},
"limit": 1
}