UNPKG

type-arango

Version:

ArangoDB Foxx decorators and utilities for TypeScript

13 lines (11 loc) 299 B
import {Attribute, Document, Entity, OneToOne, Related} from '../../../src' // type-arango import {Author} from '.' // describe the user @Document() export class Book extends Entity { @Attribute() title: string @Attribute() @OneToOne(type => Author) author: Related<Author> }