query-orm is a Loopback-like ORM for Node.js that works with any framework, currently at version 1.2.0. It provides a declarative model definition with filters, relations, and operational hooks, and supports Elasticsearch via the query-orm-connector-elastic connector. Unlike traditional ORMs like Sequelize or Mongoose, it is designed to be framework-agnostic and uses JSON configuration for models and datasources. It is not actively maintained (last release 5+ years ago) and has limited documentation.
npm install query-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes QueryORM with model and datasource config, creates a User, and queries by username.
Consider using a more modern ORM like Sequelize, TypeORM, or Prisma.
Use the format shown in datasource.json in the documentation.
Ensure 'id' field in model-config.json has 'property' and 'generated'.
Migrate to a supported ORM or use a custom connector.
Use explicit type checks in application code.
npm install query-orm-connector-elastic
Ensure model-config.json contains valid model definitions and 'directory' pointing to model JSON files.
Start Elasticsearch or update 'nodes' array in datasource.json