
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
hiro-graph-orm-mappings
Advanced tools
a set of mapping definitions useful across OGIT apps using `hiro-graph-orm`
hiro-graph-orm-mappings: Common mappings for hiro-graph-ormCommon 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.
$ 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
a set of mapping definitions useful across OGIT apps using `hiro-graph-orm`
We found that hiro-graph-orm-mappings demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.