1
1
//
2
2
// DISCLAIMER
3
3
//
4
- // Copyright 2020-2023 ArangoDB GmbH, Cologne, Germany
4
+ // Copyright 2020-2025 ArangoDB GmbH, Cologne, Germany
5
5
//
6
6
// Licensed under the Apache License, Version 2.0 (the "License");
7
7
// you may not use this file except in compliance with the License.
@@ -59,13 +59,13 @@ func (c collectionDocumentUpdate) UpdateDocumentWithOptions(ctx context.Context,
59
59
}
60
60
61
61
response := struct {
62
- * DocumentMeta `json:",inline"`
63
- * shared.ResponseStruct `json:",inline"`
64
- Old * UnmarshalInto `json:"old,omitempty"`
65
- New * UnmarshalInto `json:"new,omitempty"`
62
+ * DocumentMetaWithOldRev `json:",inline"`
63
+ * shared.ResponseStruct `json:",inline"`
64
+ Old * UnmarshalInto `json:"old,omitempty"`
65
+ New * UnmarshalInto `json:"new,omitempty"`
66
66
}{
67
- DocumentMeta : & meta .DocumentMeta ,
68
- ResponseStruct : & meta .ResponseStruct ,
67
+ DocumentMetaWithOldRev : & meta .DocumentMetaWithOldRev ,
68
+ ResponseStruct : & meta .ResponseStruct ,
69
69
70
70
Old : newUnmarshalInto (meta .Old ),
71
71
New : newUnmarshalInto (meta .New ),
@@ -142,7 +142,7 @@ type collectionDocumentUpdateResponseReader struct {
142
142
array * connection.Array
143
143
options * CollectionDocumentUpdateOptions
144
144
response struct {
145
- * DocumentMeta
145
+ * DocumentMetaWithOldRev
146
146
* shared.ResponseStruct `json:",inline"`
147
147
Old * UnmarshalInto `json:"old,omitempty"`
148
148
New * UnmarshalInto `json:"new,omitempty"`
@@ -161,7 +161,7 @@ func (c *collectionDocumentUpdateResponseReader) Read() (CollectionDocumentUpdat
161
161
meta .New = c .options .NewObject
162
162
}
163
163
164
- c .response .DocumentMeta = & meta .DocumentMeta
164
+ c .response .DocumentMetaWithOldRev = & meta .DocumentMetaWithOldRev
165
165
c .response .ResponseStruct = & meta .ResponseStruct
166
166
167
167
if err := c .array .Unmarshal (& c .response ); err != nil {
0 commit comments