1.0.1 • Published 7 years ago

hiro-graph-orm-mappings v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

hiro-graph-orm-mappings: Common mappings for hiro-graph-orm

Common OGIT entity type and relation mappings for hiro-graph-orm

See hiro-graph-orm for details on how the schema works and what it is useful for.

installation

$ npm install hiro-graph-orm-mappings

Then they can be imported individually or in a block.

As a block:

import { Schema } from "hiro-graph-orm";

import mappings from "hiro-graph-orm-mappings";

const schema = new Schema(mappings);

Or individually:

import { Schema } from "hiro-graph-orm";

//this would include everything in a bundle, not so good for frontend
import { Person, Org } from "hiro-graph-orm-mappings";
//or better for frontend
import Person from "hiro-graph-orm-mappings/lib/person";
import Org from "hiro-graph-orm-mappings/lib/org";

const schema = new Schema([Person, Org]);
1.0.1

7 years ago

1.0.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.8

8 years ago

0.2.7

8 years ago

0.2.6

8 years ago

0.2.2

8 years ago

0.2.0

8 years ago

0.1.7-beta.0

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.0

8 years ago

0.0.4-0

8 years ago

0.0.1-0

8 years ago