Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

API: GET http://<IP>:<PORT>/cps/v2/dataspaces/{dataspace-name}/anchor/{anchor-name}/nodes/query?select={generic_query_parameter}

Query parameters.

Parameter NameObjectiveExamples
selectTo query only selected fields for a given cps-path. 

?select=title, price

?select=name, price.gt.100








Use cases.

  1. 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. 
  2. 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

References

Tables and Views — PostgREST 12.0 documentation