1.0.1 • Published 2 years ago

graphile.js v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

graphile.js

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)
  });
});
1.0.1

2 years ago

1.0.0

2 years ago