Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.07 KB

File metadata and controls

31 lines (22 loc) · 1.07 KB

SortOption

Specifies how to sort query results. Attributes: field: Field to sort by direction: Sort direction (ascending or descending)

Properties

Name Type Description Notes
var_field str Field to sort by, supports dot notation for nested fields
direction SortDirection Sort direction [optional]

Example

from mixpeek.models.sort_option import SortOption

# TODO update the JSON string below
json = "{}"
# create an instance of SortOption from a JSON string
sort_option_instance = SortOption.from_json(json)
# print the JSON string representation of the object
print(SortOption.to_json())

# convert the object into a dict
sort_option_dict = sort_option_instance.to_dict()
# create an instance of SortOption from a dict
sort_option_from_dict = SortOption.from_dict(sort_option_dict)

[Back to Model list] [Back to API list] [Back to README]