README
GraphKB Schema
This repository is part of the platform for oncogenomic reporting and interpretation.
This is the package which defines the schema logic used to create the database, build the API and GUI. It is a dependency of both the API and GUI and uses the parser package.
This is where all database constraints and swagger metadata associated with a particular database model is defined
Deployment
This package is installed on our local npm server. To install simply add to your package.json as you would with any other package and supply the registry argument to npm install
Getting Started (For Developers)
Install the dependencies
npm install
Then run the tests
npm run test
Using with OrientJS
To avoid requiring orientjs in this package, the RID class is defaulted to the builtin String class. It is expected that if you want your RID strings cast to RID objects (orientjs.RID or orientjs.RecordID for orientjs 3.X.X) that you will patch this after import. For example
const {RID} = require('orientjs');
const {constants, schema: SCHEMA_DEFN} = require('@bcgsc-pori/graphkb-schema');
const {PERMISSIONS} = constants;
constants.RID = RID; // IMPORTANT: Without this all castToRID will do is convert to a string