w3-io/W3 MongoDB Action

Complete MongoDB API: documents, queries, aggregations, atomic operations, bulk writes, indexes, and collection management for W3 workflows

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
commandOperation: find-one, find, count, estimated-count, distinct, insert-one, insert-many, update-one, update-many, replace-one, delete-one, delete-many, find-one-and-update, find-one-and-replace, find-one-and-delete, bulk-write, transaction, aggregate, create-index, create-indexes, drop-index, drop-indexes, list-indexes, list-collections, create-collection, drop-collection, rename-collection, collection-stats, db-stats, drop-database, run-commandyes
urlMongoDB connection string (mongodb+srv://user:pass@cluster/db or mongodb://host:port/db)yes
collectionCollection nameno""
filterQuery filter as JSON (for find, update, delete, count, distinct)no{}
documentDocument as JSON (for insert-one, replace-one, find-one-and-replace)no""
documentsArray of documents as JSON (for insert-many)no""
updateUpdate operations as JSON (for update-one, update-many, find-one-and-update)no""
pipelineAggregation pipeline as JSON array (for aggregate)no""
projectionFields to include/exclude as JSON (for find, find-one, find-one-and-*)no""
sortSort specification as JSON (for find, find-one-and-*)no""
limitMax documents to return (for find)no""
skipDocuments to skip (for find)no""
fieldField name (for distinct)no""
indexIndex specification as JSON (for create-index)no""
index-optionsIndex options as JSON (for create-index, e.g. {"unique": true})no""
index-nameIndex name (for drop-index)no""
upsertInsert if no match found (for update-one, update-many, replace-one, find-one-and-*)nofalse
orderedExecute operations in order (for insert-many, bulk-write; default: true)notrue
operationsArray of operations as JSON (for bulk-write, create-indexes)no""
optionsCollection options as JSON (for create-collection, e.g. capped, timeseries, validator)no""
new-nameNew collection name (for rename-collection)no""
return-documentReturn document before or after modification (for find-one-and-*; default: after)noafter
db-commandArbitrary database command as JSON (for run-command)no""
namedescription
resultCommand result as JSON string