Links

Fields

You can control which fields should be included in the documents returned by a query. Provide the field names with the fields parameter.
The fields parameter works for single documents as well as for list endpoints.
get
https://api.cmft.io
/v1/<repoName>/<endpoint>?fields=fields|meta|includes(<field1>,<field2>)
Control which fields are included for a response

Scopes

Returns only this scope or the stated sub-fields (e.g. title). There are three scopes:
  • fields
  • meta
  • includes

Value Syntax

Syntax
Description
a,b,c
comma-separated list will select multiple fields
a/b/c
path will select a field from its parent
a(b,c)
sub-selection will select many fields from a parent
a/*/c
the star * wildcard will select all items in a field

Examples

Find some examples on the collection examples page: