@foxify/odin v0.10.0
Odin
Odin is an implementation of Active Record pattern in TypeScript.
Table of Content
Installation
Before installing, download and install Node.js. Node.js 8 or higher is required.
npm i -s @foxify/odinUsage
const Odin = require("@foxify/odin");
const { Types } = Odin;
class User extends Odin {
}
User.schema = {
email: Types.String.email.required,
name: {
first: Types.String.min(3).required,
last: Types.String.min(3),
}
};Features
- Written in
ES6 TypeScriptreadyActive RecordpatternSchemavalidationGraphQL Schemagenerator (based on model schema)JSON Schemagenerator (based on model schema)
TODO (RoadMap to version 1.0.0)
Schemavalidation- Model
- Hooks
createupdatedeleterestore
- Relationships
embedManyhasManyhasOnehasManyThroughhasOneThroughPolymorphicmorphManymorphOnemorphTomorphManyThroughmorphOneThroughmorphToThrough
- CRUD operations
- Create operation
- Read operation
- Update operation
- Delete operation
GraphQLsupportJSON Schemasupport
- Hooks
- Migrations
- Seeding
- Tests
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Changelog
See the CHANGELOG.md file for details
Authors
- Ardalan Amini - Core Maintainer - @ardalanamini
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details
Support
If my work helps you, please consider
5 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago

