Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement update_many #203

Closed
clun opened this issue Feb 9, 2024 · 0 comments · Fixed by #204
Closed

Implement update_many #203

clun opened this issue Feb 9, 2024 · 0 comments · Fixed by #204
Assignees

Comments

@clun
Copy link
Collaborator

clun commented Feb 9, 2024

The data API offers the methods update_many that allows to update a subset of properties for different record matching a criteria

Documentation
https://docs.datastax.com/en/astra/astra-db-vector/api-reference/data-api-commands.html#update-many-matching-documents-with-set

Sample:

{ 
  "updateMany": {
    "filter": {"status" : "active" },
    "update" : {"$set" : { "status" : "inactive"}}
  }
} 

As of today this feature is not exposed in the astrapy.

@erichare erichare self-assigned this Feb 9, 2024
erichare added a commit that referenced this issue Feb 9, 2024
@erichare erichare linked a pull request Feb 9, 2024 that will close this issue
erichare added a commit that referenced this issue Feb 12, 2024
* Fix #203 : Implementation for update_many

* Update test_db_dml.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants