angel-dart-archive / relations

moved to angel-dart/angel/packages/relations

Home Page:https://github.com/angel-dart/angel/tree/master/packages/relations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

relations

version 1.0.1 build status

Database-agnostic relations between Angel services.

// Authors owning one book
app.service('authors').afterAll(
    relations.hasOne('books', as: 'book', foreignKey: 'authorId'));

// Or multiple
app.service('authors').afterAll(
    relations.hasMany('books', foreignKey: 'authorId'));

// Or, books belonging to authors
app.service('books').afterAll(relations.belongsTo('authors'));

Supports:

  • hasOne
  • hasMany
  • hasManyThrough
  • belongsTo
  • belongsToMany

About

moved to angel-dart/angel/packages/relations

https://github.com/angel-dart/angel/tree/master/packages/relations

License:MIT License


Languages

Language:Dart 100.0%