You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2018/03/23 11:08:14 UTC
[incubator-openwhisk-client-js] branch issue_8_count updated:
update readme with count
This is an automated email from the ASF dual-hosted git repository.
csantanapr pushed a commit to branch issue_8_count
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-client-js.git
The following commit(s) were added to refs/heads/issue_8_count by this push:
new 6e04971 update readme with count
6e04971 is described below
commit 6e0497141da8cae3a91934f41af062beb9bcc471
Author: Carlos Santana <cs...@apache.org>
AuthorDate: Fri Mar 23 07:06:50 2018 -0400
update readme with count
---
README.md | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index d11110d..e15b8b8 100644
--- a/README.md
+++ b/README.md
@@ -229,12 +229,17 @@ ow.namespaces.list()
ow.packages.list()
```
-Query parameters for the API calls are supported (e.g. limit, skip, etc.) by passing an object with the named parameters as the first argument.
+Query parameters for the API calls are supported (e.g. limit, skip, count etc.) by passing an object with the named parameters as the first argument.
```javascript
ow.actions.list({skip: 100, limit: 50})
```
+To count the number of resources without retrieving the resources you can use `count` query parameter.
+```
+ow.actions.list({count:true}).then(a => console.log(a)) //prints {"actions": 42}
+```
+
The following optional parameters are supported:
- `namespace` - set custom namespace for endpoint
--
To stop receiving notification emails like this one, please contact
csantanapr@apache.org.