šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Book a DemoInstallSign in
Socket

graphand-js

Package Overview
Dependencies
Maintainers
0
Versions
340
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphand-js

Graphand-js is the javascript sdk to integrate efficiently graphand.io within your apps.

0.30.16-beta
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
0
Weekly downloads
Ā 
Created
Source

Graphand javascript client

Graphand-js is the javascript sdk to integrate efficiently graphand.io within your apps.

Getting started

Create client

First, you need to create a graphand client for your project

import Graphand from "graphand-js";

const client = Graphand.createClient({
    project: "yourProjectId"
});

Get model

Then, your client can generate GraphandModel constructor to access your data

const Account = client.getModel("Account");
const Potatoes = client.getModel("Data:potatoes");
// or get multiple models at once
const [Account, Potatoes] = client.getModels(["Account", "Data:potatoes"]);

Account.getCurrent().then((account) => alert(`Hello ${account.fullname} !`));
Potatoes.getList({}).then((list) => alert(`${list.count} potatoes in list !`));

See API reference

šŸš€

FAQs

Package last updated on 25 Sep 2024

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