Ottoman.js

ODM for Couchbase adds an abstraction layer over the Node.js SDK, simplifying development and minimizing boilerplate code for faster and more efficient app creation.

Ottoman overview & features

Ottoman.js offers an ODM for Couchbase, adding an abstraction layer over the Node.js SDK to simplify development and reduce boilerplate. It enhances data quality with schema definitions, validators, and custom data types. Ottoman is open-source, secure, and supports JavaScript/TypeScript, ensuring adaptability and affordability. It enables agility with features like built-in queries, hooks, plugins, bulk operations, and a query builder, supporting fast, efficient application development.

Ottoman.js resources

Docs
Mongoose to Ottoman

Ottoman is designed to be familiar to uses of Mongoose.js

  • Data Migration: How to move data from MongoDB to Couchbase with transformations.
  • Code Examples: Compares Mongoose and Ottoman for schema, models, and queries.
  • Schema Features: Covers instance and static methods in Ottoman.
Read more
FORUMS
Ask your questions and get answers about Ottoman.js in the Couchbase Node.js SDK forum
Read more
DOCS
Quick Start with Ottoman to work with Couchbase
Read more

Related integrations

Frequently asked questions

  • What is Ottoman.js, and how does it work with Couchbase?

    Ottoman.js is an ODM (Object Document Mapper) for Couchbase, enabling developers to define schemas, models, and perform database operations using JavaScript or TypeScript.

  • How do I define schemas with Ottoman.js?

    Schemas are defined using the Schema class, allowing you to specify field types, defaults, enums, and nested objects, similar to Mongoose.

  • Can I query data using Ottoman.js?

    Yes, Ottoman.js supports powerful query capabilities, including find, removeById, and findOneAndUpdate, leveraging Couchbase’s query engine.

  • Does Ottoman.js support SQL++ queries?

    Yes, Ottoman.js allows you to execute custom SQL++ queries, giving you full access to Couchbase’s advanced query capabilities.

Couchbase developer community

  • Join the community!

    We’re all hanging out on Discord and would love for you to join our conversations.

  • Access our docs

    Here’s everything you need to start building with Couchbase Capella™.

  • Get certified with Couchbase Academy

    Whether you’re managing Couchbase on premises, using Couchbase Autonomous Operator (CAO), using Couchbase Capella, or writing apps that use Couchbase, we have a certification for you.

  • Stay sharp with our blog

    News breaks first on our blog. Stay up to date on the Couchbase ecosystem and learn tips and tricks from our engineers, developer advocates, and partners.