API (JS)
Installation
bun i @dnax/sdk@latestInstance REST API
import {useRest} from "@dnax/sdk"
const rest = new useRest({
key:"_API_", // Unique Key for each application
tenant_id:"0001", // Tenant ID
server:"http://localhost:4000" // Server url
})Les opérateur de recherche
$match & $matchInclude
les relations (Propagation)
$include
Fecthing options
$limit
$skip
Ordering options
$sort
$project
Méthodes
authCollection
aggregate
find
findOne
insertOne
insertMany
updateOne
updateMany
deleteOne
deleteMany
setToken
clearToken
logout
service
endpoint
dropIndexes
socketIO
Last updated