This page shows you how to update documents in a collection.
Copy
from lambdadb import LambdaDBlambda_db = LambdaDB( server_url="PROJECT_URL", project_api_key="YOUR_API_KEY")# Prepare update documentsdocs = [ { "id": "33201222", "title": "LambdaDB v2", "text": "LambdaDB is a serverless-native search engine for AI... " }, { "id": "33201223", "url": "https://en.wikipedia.org/wiki/Winamp", "title": "Winamp v2", "text": "Winamp v2 is a media player for Windows, macOS and Android, originally developed by Justin Frankel and Dmitry Boldyrev by their company Nullsoft, which they later sold to AOL, who sold to Radionomy in January 2014." }]# Execute updateupdate_docs_test = lambda_db.collections.docs.update( collection_name=collection_name, docs=docs,)
Each document in a payload must contain an id field to uniquely identify a document to update.