@moirei/dobby
TypeScript icon, indicating that this package has built-in type declarations

1.8.1 • Public • Published

@moirei/dobby

Dobby is a GraphQL query builder and CRUD client that makes working with graphql data sources and object models enjoyable. It's patterned after the OpenCRUD standard with Prisma and Laravel Lighthouse backends in mind.

import User form '~/models/user'
...

const users = await User.select('id', 'name', 'email')
                        .with('posts')
                        .findMany();

Documentation

All documentation is available at the documentation site.

💚 Unique Features

  • Basic CRUD operations
  • Declarative and extensible Data Models and Object-relational mapping
  • Flexible Query Builder for progressively defining complex query fields and relationships
  • Models Attributes casting and mutation
  • Adapters to make working with workspaces and different backends easy
  • Model Hooks make it possible to further configure how individual models handle common CRUD operations.

Installation

You can install the package via npm:

npm i @moirei/dobby

Changelog

Please see CHANGELOG.

License

The MIT License (MIT). Please see License File for more information.

/@moirei/dobby/

    Package Sidebar

    Install

    npm i @moirei/dobby

    Weekly Downloads

    13

    Version

    1.8.1

    License

    MIT

    Unpacked Size

    278 kB

    Total Files

    118

    Last publish

    Collaborators

    • augustusnaz