🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

hiro-graph-orm-mappings

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

hiro-graph-orm-mappings

a set of mapping definitions useful across OGIT apps using `hiro-graph-orm`

unpublished
latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
3
Created
Source

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]);

FAQs

Package last updated on 15 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts