@carretto/http
v0.2.2
Published
Http adapter for Carretto dataloader
Downloads
17
Readme
@carretto/http
This is the adapter to use carretto
with resources over http
.
Install
npm i @carretto/http
Usage
const loader = new DataloaderHttp()
// resolver.ts
export async function(
source,
args,
context,
info
) {
await loader.load({ query: args.query, projection: myFunctionToGetProjection(info), skip: args.skip, limit: args.limit })
}