...
API: GET http://<IP>:<PORT>/cps/v2/dataspaces/{dataspace-name}/anchor/{anchor-name}/nodes/query?select={generic_query_parameter}
Query parameters.
Parameter Name | Objective | Examples |
---|---|---|
select | To query only selected fields for a given cps-path. | ?select=title, price ?select=name, price.gt.100 |
Use cases.
- We want to query data nodes and get only selected few leaves. It will help to limit the output data and also in searching if a leaf in present in a data node or not.
- Search of a specific leaf without knowing actual cps-path. If a client is not sure about the cps-path but he wants to query for a given leaf node