Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 782 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 782 Bytes

Faun

A Node.js ORM for interacting with FaunaDB without FQL

If I'll be honest, I don't even know if this is an ORM or ODM, but whatever.

Usage

Setup Client

const client = new FaunaClient({ secret: process.env.FAUNA_SECRET_KEY });

Create Database

let res = await client.createDatabase('helloworld');

Get Database

let res = await client.getDatabase('helloworld');

Rename Database

let res = await client.renameDatabase('helloworld', 'hello');

Delete Database

let res = await client.deleteDatabase('hello');

Contributing

Feel free to make pull requests and submit issues.

(i mean, do you even want to?) 👉👈

License

MIT