1.0.3 • Published 3 years ago

fauna-helper v1.0.3

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

FaunaDB query helpers

This is a collection of helper methods for querying Fauna Database so we don't have to write FQL ourselves

Installation

npm install --save fauna-helper

or

yarn add fauna-helper

Create an instance of FaunaHelper

import {FaunaHelper} from 'fauna-helper';
const serverKey = <your faunaDB server key>;
const faunaHelper = new FaunaHelper(serverKey);

Use helper methods to interact with your collections

## For example, get documents from a given collection and specify how many documents to return (page size)
faunaHelper.getDocumentsFromCollection('myCollectioName', 10).then(results=>{
    // do something with results
});

For more info on how to use the library

See each method's definitions. The library is written in TypeScript so auto-completion in most IDEs should be able to help you.

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago