__ _ _ _ _ _ _ _
/ _| | | | | | (_) (_) |
| |_ __ _ _ _ _ __ __ _ __| | |__ ______ _ _| |_ _| |_| |_ _ _
| _/ _` | | | | '_ \ / _` |/ _` | '_ \______| | | | __| | | | __| | | |
| || (_| | |_| | | | | (_| | (_| | |_) | | |_| | |_| | | | |_| |_| |
|_| \__,_|\__,_|_| |_|\__,_|\__,_|_.__/ \__,_|\__|_|_|_|\__|\__, |
__/ |
|___/
npm install faunadb-utility
or
yarn add faunadb-utility
import fauna from "faunadb-utility"
const fauna = require('faunadb-utility');
createClasses
: Create a class in fauna. (Collection)createFaunaDocument
: Create a fauna document.createIndexes
: Create a index in fauna.deleteFaunaDocument
: Delete a fauna document.faunaClient
: Create a fauna client.queryAllByFaunaIndexes
: Query all documents by fauna indexes.queryTermByFaunaIndexes
: Query documents by fauna indexes and term.queryTermsByFaunaIndexes
: Query documents by fauna indexes and terms.updateFaunaDocument
: Update a fauna document.
faunadb-utility/
│ .eslintrc.js
│ .prettierrc
│ CONTRIBUTING.md
│ LICENSE
│ README.md
│ awesome-readme.config.js
│ package-lock.json
│ package.json
│ tsconfig.json
│ tslint.json
└─── src/
│ README.md
│ createClasses.ts
│ createFaunaDocument.ts
│ createIndexes.ts
│ deleteFaunaDocument.ts
│ faunaClient.ts
│ index.ts
│ queryAllByFaunaIndexes.ts
│ queryTermByFaunaIndexes.ts
│ queryTermsByFaunaIndexes.ts
│ updateFaunaDocument.ts