Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.2 KB

Select.md

File metadata and controls

32 lines (23 loc) · 1.2 KB

Select

A field selection expression. e.g. request.auth.

Properties

Name Type Description Notes
operand Expr [optional]
var_field str Required. The name of the field to select. For example, in the select expression `request.auth`, the `auth` portion of the expression would be the `field`. [optional]
test_only bool Whether the select is to be interpreted as a field presence test. This results from the macro `has(request.auth)`. [optional]

Example

from permify.models.select import Select

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

# convert the object into a dict
select_dict = select_instance.to_dict()
# create an instance of Select from a dict
select_from_dict = Select.from_dict(select_dict)

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