orbit-graphql-schema
GraphQL schema builder for Orbit.
Installation
Install with yarn:
yarn add orbit-graphql-schema
Usage
;;;; const schema = models: author: attributes: name: type: 'string' relationships: books: type: 'hasMany' model: 'book' inverse: 'author' book: attributes: title: type: 'string' relationships: author: type: 'hasOne' model: 'author' inverse: 'books' ; const source = schema knex: client: 'pg' connection: processenvDATABASE_URL ; const server = schema: context: source ; server;
License
MIT License (see LICENSE for details).