@osirisx3r0/faunadb-node-api
TypeScript icon, indicating that this package has built-in type declarations

0.6.6 • Public • Published

faunadb-node-api

A NodeJS API for FaunaDB

Usage

// api.js

const FaunaAPI = require("@osirisx3r0/faunadb-node-api");

module.exports = new FaunaAPI(process.env.FAUNA_API_KEY);
// users.js

const API = require("api.js");

const getUsers = async () => {
  await API.connect();
  return await API.users.getAll();
};

Development

  1. Clone the repository

  2. Create a config.js file at the project root

    module.exports = {
      FAUNA_ADMIN_KEY: "A9OP84HAE4598ES45GSAE9P458GE9GH8095GPS98",
    };

Readme

Keywords

none

Package Sidebar

Install

npm i @osirisx3r0/faunadb-node-api

Weekly Downloads

0

Version

0.6.6

License

ISC

Unpacked Size

9.64 kB

Total Files

15

Last publish

Collaborators

  • osirisx3r0