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();
All documentation is available at the documentation site.
- 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.
You can install the package via npm:
npm i @moirei/dobby
Please see CHANGELOG.
The MIT License (MIT). Please see License File for more information.