Nodes - Model Count

A number of flow-nodes for performing operations on models are also available for use. These are primarily used when generating endpoints from existing models in the UI.

Name

Description

ModelCount A Model specific flow-node. Invokes the Count API on a specified model and returns the response.

Instance configuration

Property Description Required Type
method The name of the model of which to invoke the Count API. yes string

Instance parameters

These are all specified by the chosen model.

Example

 Expand source
"model.count": {
 "type": "ModelCount",
 "config": {
   "model": "appc.arrowdb/acl"
 },
 "parameters": [
   {
     "name": "limit",
     "value": "$.params.limit"
   },
   {
     "name": "skip",
     "value": "$.params.skip"
   },
   {
     "name": "where",
     "value": "$.params.where"
   },
   {
     "name": "order",
     "value": "$.params.order"
   },
   {
     "name": "sel",
     "value": "$.params.sel"
   },
   {
     "name": "unsel",
     "value": "$.params.unsel"
   },
   {
     "name": "page",
     "value": "$.params.page"
   },
   {
     "name": "per_page",
     "value": "$.params.per_page"
   }
 ],
 "response": {
   "context": {
     "$": "count"
   },
   "routes": [
     {
       "next": "block.1"
     }
   ]
 }
}
  

Related Links