@linaframework/arango-orm
Version:
> Please check out https://github.com/awesome-graphql-space/lina and https://github.com/oknoah/final/packages/arangolize for similar projects that MAY be more up to date
14 lines (11 loc) • 445 B
JavaScript
import Schema from '../schemas/schema'
import FieldType from '../fields/field-type'
export default class EdgeSchema extends Schema {
constructor (userSchema = null, basePath = [], isRootSchema = true) {
super(userSchema, basePath, isRootSchema)
if (isRootSchema) {
this.fields.push(new FieldType(basePath, ['_from'], String, null, true))
this.fields.push(new FieldType(basePath, ['_to'], String, null, true))
}
}
}