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
When trying to replace documents (note the plural, it does work with ReplaceDocument correctly), the v2 version of the arangodriver has a bug and does an Update (that merges changes) instead of a replace.
You can see the error in collection_documents_replace_impl.go in line 100:
func (c collectionDocumentReplace) ReplaceDocumentsWithOptions(ctx context.Context, documents interface{}, opts *CollectionDocumentReplaceOptions) (CollectionDocumentReplaceResponseReader, error) {
// ...
req, err := c.collection.connection().NewRequest(http.MethodPatch, url) // <-- THIS SHOULD BE A http.MethodPut
// ...
The text was updated successfully, but these errors were encountered:
When trying to replace documents (note the plural, it does work with ReplaceDocument correctly), the v2 version of the arangodriver has a bug and does an Update (that merges changes) instead of a replace.
You can see the error in
collection_documents_replace_impl.go
in line 100:The text was updated successfully, but these errors were encountered: