Example: Sorting
sorting
Parameters
const api = Comfortable.api('<repository-api-id>', '<api-key>');
var options = {
sorting: new Comfortable.Sorting()
.add('createdAt', 'asc', 'meta')
.add('title', 'asc')
}
api.getDocuments(options)
.then(result => {
// futher implementation
})
.catch(err => {
throw err;
})Last updated