New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

graphile.js

Package Overview
Dependencies
Maintainers
1
Versions
2
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

graphile.js

Node.js library for interacting with Graphile's REST API

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

graphile.js


Node.js library for interacting with Graphile's REST API



NPM version NPM downloads Repository view count


npm installnfo

Example

const { Client } = require("graphile.js");

const client = new Client({
  url: "http://localhost:3001/",
  tokem: "abc123",
});
let GraphManager = new client.GraphManager(client);
let DataManager = new client.DataManager(client);

client.on("ready", async function (client) {
  console.log(`[Graphile] Client logged in and ready`);

  await GraphManager.fetch("909981006453411800", "id").then((data) => {
    console.log(data); // Returns information about the graph specified (ID)
  });
  await DataManager.post("909981006453411800", -6583498689, {
    color: "#4287f5",
  }).then((data) => {
    console.log(data); // Posts data to the graph specified (ID)
  });
});

Keywords

graphile

FAQs

Package last updated on 16 Nov 2021

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