An open API service indexing awesome lists of open source software.

https://github.com/marc-aurele-besner/faunadb-utility

Set of useful helper functions to use with FaunaDB
https://github.com/marc-aurele-besner/faunadb-utility

fauna faunadb typescript utility

Last synced: about 2 months ago
JSON representation

Set of useful helper functions to use with FaunaDB

Awesome Lists containing this project

README

        

[![license](https://img.shields.io/github/license/jamesisaac/react-native-background-task.svg)](https://opensource.org/licenses/MIT)
[![npm version](https://badge.fury.io/js/faunadb-utility.svg)](https://badge.fury.io/js/faunadb-utility)

# faunadb-utility

```

__ _ _ _ _ _ _ _
/ _| | | | | | (_) (_) |
| |_ __ _ _ _ _ __ __ _ __| | |__ ______ _ _| |_ _| |_| |_ _ _
| _/ _` | | | | '_ \ / _` |/ _` | '_ \______| | | | __| | | | __| | | |
| || (_| | |_| | | | | (_| | (_| | |_) | | |_| | |_| | | | |_| |_| |
|_| \__,_|\__,_|_| |_|\__,_|\__,_|_.__/ \__,_|\__|_|_|_|\__|\__, |
__/ |
|___/

```

## Installation
```
npm install faunadb-utility
```
or
```
yarn add faunadb-utility
```

## Directories
- [src/](./src/)

- [.eslintrc.js](./.eslintrc.js)
- [.prettierrc](./.prettierrc)
- [CONTRIBUTING.md](./CONTRIBUTING.md)
- [LICENSE](./LICENSE)
- [README.md](./README.md)
- [awesome-readme.config.js](./awesome-readme.config.js)
- [package-lock.json](./package-lock.json)
- [package.json](./package.json)
- [tsconfig.json](./tsconfig.json)
- [tslint.json](./tslint.json)

## Usage
```ts
import fauna from "faunadb-utility"
```

```js
const fauna = require('faunadb-utility');
```

### Functions

- `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.

## Directory Tree
```
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
```
## Don't hesitate to contribute to this project.