This is a collection of helper methods for querying Fauna Database so we don't have to write FQL ourselves
npm install --save fauna-helper
or
yarn add fauna-helper
import {FaunaHelper} from 'fauna-helper';
const serverKey = <your faunaDB server key>;
const faunaHelper = new FaunaHelper(serverKey);
## 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
});
See each method's definitions. The library is written in TypeScript so auto-completion in most IDEs should be able to help you.