Field Selection
The --fields flag controls which columns appear in search output. When omitted, you get _id plus all schema properties - the sensible default for most queries.
# Default output: _id + all schema propertiesmax search linear-1 LinearUser --limit=5
# Pick specific fieldsmax search linear-1 LinearUser --fields=_id,displayName,emailThe catch with explicit field selection is that it’s all-or-nothing - once you specify --fields, you only get what you list. This makes it awkward when you want the default output plus one extra field like _ref.
Group selectors
Group selectors solve this. They’re dot-prefixed keywords that expand to a set of fields:
| Selector | Expands to |
|---|---|
.props | All schema-defined properties |
.meta | All meta fields (_id, _ref, …) |
.all | .meta + .props |
Group selectors can be mixed freely with individual field names:
# Everything - all meta fields and all propertiesmax search linear-1 LinearUser --fields=.all
# Default output plus _refmax search linear-1 LinearUser --fields=_id,.props
# All meta fields, but only specific propertiesmax search linear-1 LinearUser --fields=.meta,displayName,email
# Same as .allmax search linear-1 LinearUser --fields=.meta,.propsDuplicates are removed automatically, so .all,_id won’t show _id twice.
Field namespaces
Field names occupy three distinct namespaces, each with its own prefix convention:
- Bare names (
displayName,email) - schema properties defined by the connector - Underscore prefix (
_id,_ref) - meta fields provided by Max on every entity - Dot prefix (
.props,.meta,.all) - group selectors that expand to sets of fields
The default output (no --fields) is equivalent to --fields=_id,.props.