function
Field
Field names a field by its segments, such as Field("seo", "title"). Like regexp.MustCompile, it panics when a name is malformed. Filter helpers also accept the dot-separated string "seo.title" directly; use Field when you need a Path value, such as for ListOptions.Select.
Arguments
| Argument | Type | Description |
|---|---|---|
segments | []string | The segments value. |
Returns
The declared result.
PathFull signature
Related types
PathAn immutable, validated document field path.