How to store multiple documents in DB at once
I am going through the docs here https://docs.convex.dev/database/writing-data
I can see
db.insert
method to insert new record, But I can't see any methods for storing multiple records at once.
Is this even possible?Writing Data | Convex Developer Hub
Mutations can insert, update, and
1 Reply
@Dhruv Kumar Jha A convex mutations is arbitrary JavaScript, so you can write multiple inserts in a mutation or write a for loop in insert multiple records in a single mutation.