NodesDatabase Nodes
Edit Page on GitHubMongoDB - Create Collection
Create a new collection in MongoDB database
mongodbdatabasecreatecollectionHard5

Description
The MongoDB - Create Collection node allows you to create a new collection within a specified MongoDB database. This is useful for organizing your data into different collections based on your application's requirements.
Common Use Cases
- Setting up a new collection for storing user data
- Creating collections for different types of documents in your application
- Organizing data for better retrieval and management
Inputs
The input connections this node accepts:
NameDescriptionTypeFlowThe flow of the workflowFlowCollectionName of the collection to createTextOptionsCollection options (capped, size, max, validator, etc.)JSONIndexesArray of indexes to create [{keys: {field: 1}, options: {unique: true}}]JSON[]Outputs
The output connections this node provides:
NameDescriptionTypesuccessWhether the collection was created successfullyBooleancollectionNameThe name of the created collectionTextmessageSuccess or error messageTextToolThe tool version of this node, to be used by LLMsToolFields
The configurable fields this node provides:
NameDescriptionTypeCollectionName of the collection to createValue:usersTextOptionsCollection options (capped, size, max, validator, etc.)Value: {}MapIndexesArray of indexes to create [{keys: {field: 1}, options: {unique: true}}]Value: []JSON[]MONGODB_CONNECTION_STRINGMongoDB connection stringDefaultValue: mongodb://localhost:27017/dbnameenvLast updated on