@moirei/dobby
v1.8.1
Published
GraphQL data models made easy.
Downloads
22
Maintainers
Readme
@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.
:green_heart: 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.