Tag Archives: ODM

Getting Started with NodeJS LoopBack Connector for Couchbase


via StrongLoop | Getting Started with Node.js LoopBack Connector for Couchbase.

LoopBack is the leading open source, enterprise-ready Node.js framework for helping developers to create APIs integrated with legacy and next gen backends that at the same time enables mobile and micro services architectures.

LoopBack models connect to backend systems like databases via data sources that provide create, read, update and delete (CRUD) functions through the LoopBack Juggler: a modern ORM/ODM. These data sources are backed by connectors that implement connection and data access logic using database drivers or other client APIs. In addition, there are connectors for REST and SOAP APIs, NoSQL, messaging middleware, storage services and more. For example, StrongLoop maintains connectors for:

Part 1: BUILDING YOUR FIRST APPLICATION WITH MONGODB: CREATING A REST API USING THE MEAN STACK


via Building your first application with MongoDB: Creating a REST API using the MEAN Stack – Part 1 | MongoDB.

In this 2-part blog series, you will learn how to use MongoDB, Mongoose Object Data Mapping (ODM) with Express.js and Node.js. These technologies use a uniform language – JavaScript – providing performance gains in the software and productivity gains for developers.

In this first part, we will describe the basic mechanics of our application and undertake data modeling. In the second part, we will create tests that validate the behavior of our application and then describe how to set-up and run the application.

No prior experience with these technologies is assumed and developers of all skill levels should benefit from this blog series. So, if you have no previous experience using MongoDB, JavaScript or building a REST API, don’t worry – we will cover these topics with enough detail to get you past the simplistic examples one tends to find online, including authentication, structuring code in multiple files, and writing test cases.

Let’s begin by defining the MEAN stack.

INTRODUCING VERSION 4.0 OF THE MONGOOSE NODEJS ODM


via Introducing Version 4.0 of the Mongoose NodeJS ODM | MongoDB.

The MongoDB NodeJS team is excited to announce the latest version, 4.0.0, of the popular Mongoose ODM. In addition to supporting MongoDB server 3.0, Mongoose 4 is packed with exciting new features and improvements. I’ve already covered some of the highlights, including an improved custom validator API and schema validation in the browser. In this article, you’ll learn about two more important features: schema validation for update() andquery middleware.