Skip to content

Field

Field represents a single ordering field.

new Field(path, desc?): Field

string

boolean = false

Field

desc: boolean

Desc indicates if the ordering of the field is descending.


path: string

Path is the path of the field, including subfields

subFields(): string[]

SubFields returns the individual subfields of the field path, including the top-level subfield.

Subfields are specified with a . character, such as foo.bar or address street.

string[]