11//
22// DISCLAIMER
33//
4- // Copyright 2020-2023 ArangoDB GmbH, Cologne, Germany
4+ // Copyright 2020-2025 ArangoDB GmbH, Cologne, Germany
55//
66// Licensed under the Apache License, Version 2.0 (the "License");
77// you may not use this file except in compliance with the License.
@@ -59,13 +59,13 @@ func (c collectionDocumentUpdate) UpdateDocumentWithOptions(ctx context.Context,
5959 }
6060
6161 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"`
6666 }{
67- DocumentMeta : & meta .DocumentMeta ,
68- ResponseStruct : & meta .ResponseStruct ,
67+ DocumentMetaWithOldRev : & meta .DocumentMetaWithOldRev ,
68+ ResponseStruct : & meta .ResponseStruct ,
6969
7070 Old : newUnmarshalInto (meta .Old ),
7171 New : newUnmarshalInto (meta .New ),
@@ -142,7 +142,7 @@ type collectionDocumentUpdateResponseReader struct {
142142 array * connection.Array
143143 options * CollectionDocumentUpdateOptions
144144 response struct {
145- * DocumentMeta
145+ * DocumentMetaWithOldRev
146146 * shared.ResponseStruct `json:",inline"`
147147 Old * UnmarshalInto `json:"old,omitempty"`
148148 New * UnmarshalInto `json:"new,omitempty"`
@@ -161,7 +161,7 @@ func (c *collectionDocumentUpdateResponseReader) Read() (CollectionDocumentUpdat
161161 meta .New = c .options .NewObject
162162 }
163163
164- c .response .DocumentMeta = & meta .DocumentMeta
164+ c .response .DocumentMetaWithOldRev = & meta .DocumentMetaWithOldRev
165165 c .response .ResponseStruct = & meta .ResponseStruct
166166
167167 if err := c .array .Unmarshal (& c .response ); err != nil {
0 commit comments