Stack
Stack
The Stack instance serves as the primary interface for interacting with your Contentstack data stored in MongoDB. It provides methods to query entries, assets, and content type schemas.
Example:
const Stack = Contentstack.Stack(config);
| Name | Type | Description |
|---|---|---|
| dbName | string | Name of the MongoDB database. Defaults to 'contentstack-db'. |
| uri | string | MongoDB connection URI. Defaults to 'mongodb://localhost:27017'. |
| options | object | MongoDB connection options. Refer to MongoClient Options for details. |