@tipe/databox-loader
v0.3.15
Published
Tipe Databox Loader for talking with Databox
Downloads
14
Maintainers
Keywords
Readme
Databox Loader
Tipe Databox Loader for talking with Databox
yarn add @tipe/databox-loader
const DATABOX_URL = process.env.DATABOX_URL
const databox = createDatabox(DATABOX_URL)
const query = {
// MongoDB query
}
databox.user.create(query)
databox[MODEL][ACTION](query)
/*
// return data
{
data: {},
errors: []
}
*/