objection-swagger
Version:
Originally designed as Swagger definition generator for Objection.js models. Since then scope was extended to also cover Swagger-compatible snippets generation from plain JSON Schema entries as well as set of conversions that are useful for model and sche
16 lines (13 loc) • 454 B
JavaScript
// Must be kept in sync with class names in node_modules/objection/lib/relations
const HasOneRelation = 'HasOneRelation';
const HasOneThroughRelation = 'HasOneThroughRelation';
const HasManyRelation = 'HasManyRelation';
const BelongsToOneRelation = 'BelongsToOneRelation';
const ManyToManyRelation = 'ManyToManyRelation';
module.exports = {
HasOneRelation,
HasOneThroughRelation,
HasManyRelation,
BelongsToOneRelation,
ManyToManyRelation,
};