You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Set | Unset | The document body passed will be the `doc` value in the sync function, and `oldDoc` will be empty. |
21
-
| Unset | Set | The document of the given id will be fetched from the bucket/collection and will be passed in as the `doc` value in the sync function. If the document is not found, an error will be returned |
22
-
| Set | Set | The document body passed will be the `doc` value in the sync function, and the `doc_id` will be fetched from the bucket/collection and will be the `oldDoc` value. If `doc_id` doesn't exist, then `oldDoc` will be empty |
23
-
| Unset | Unset | Will throw an error (at least one of `doc` or `doc_id` is required) |
| Set | Unset | Unset | The document body passed will be the `doc` value in the sync function, and `oldDoc` will be empty. |
21
+
| Set | Set | Unset | The document body passed will be the `doc` value in the sync function, and the `oldDoc` value will be set to the inline `oldDoc` request body. |
22
+
| Unset | Unset | Set | The document of the given id will be fetched from the bucket/collection and will be passed in as the `doc` value in the sync function. If the document is not found, an error will be returned |
23
+
| Set | Unset | Set | The document body passed will be the `doc` value in the sync function, and the `doc_id` will be fetched from the bucket/collection and will be the `oldDoc` value. If `doc_id` doesn't exist, then `oldDoc` will be empty |
24
+
| Unset | - | Unset | Will throw an error (at least one of `doc` or `doc_id` is required) |
25
+
| - | Set | Set | Will throw an error (`doc_id` and inline `oldDoc` cannot both be specified) |
24
26
25
27
* Sync Gateway Application Read Only
26
28
requestBody:
@@ -45,11 +47,19 @@ post:
45
47
channel(doc.channels);
46
48
}
47
49
doc:
48
-
description: A new document body to run the dry-run operation against.
50
+
description: A document body to run the sync function dry-run operation against.
51
+
type: object
52
+
additionalProperties: true
53
+
example:
54
+
foo: buzz
55
+
doc_num_updates: 2
56
+
oldDoc:
57
+
description: A document body to use as `oldDoc` during the dry-run. Cannot be used with `doc_id`.
49
58
type: object
50
59
additionalProperties: true
51
60
example:
52
61
foo: bar
62
+
doc_num_updates: 1
53
63
meta:
54
64
description: Optional metadata used during evaluation.
0 commit comments