Skip to main content

apps.datastore.count method

Usage info

This method is only available for workflow apps.

This method is used to count the number of items in a datastore that match a query. The query uses a DynamoDB style of syntax. The following example would retrieve the number of records from the "good_tunes" datastore where "You" is in the song title.

	{
"datastore": "good_tunes",
"expression": "contains (#song, :keyword)",
"expression_attributes": { "#song": "song" },
"expression_values": { ":keyword": "You" }
}

See Datastores for a more in-depth exploration.

Response