JSPM

  • Created
  • Published
  • Downloads 2505
  • Score
    100M100P100Q121684F
  • License Apache-2.0

Isomorphic ObjectQL Engine for ObjectStack

Package Exports

  • @objectstack/objectql
  • @objectstack/objectql/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@objectstack/objectql) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@objectstack/objectql

The Data Engine for ObjectStack. It acts as a semantic layer between your application code and the underlying database.

Features

  • Universal API: A consistent query interface (find, insert, update, delete) regardless of the storage backend.
  • Schema Validation: Enforces Zod schemas defined in @objectstack/spec.
  • Query Resolution: Translates ObjectStack queries into driver-specific commands.
  • Driver Architecture: Pluggable storage (Memory, MongoDB, SQL, etc.).

Usage

import { ObjectQL } from '@objectstack/objectql';

// Querying data
const engine = kernel.getService('objectql');
const users = await engine.find('user', {
    where: { role: 'admin' },
    top: 10
});