Function create_properties_from_field_arguments

Source
pub fn create_properties_from_field_arguments(
    ctx: &ResolverContext<'_>,
    property_types: &PropertyTypes,
) -> Result<PropertyInstances, Error>
Expand description

Returns a list of property instances from the field arguments.

Returns an error if a property doesn’t exist in the entity type or relation type.

First, initializes the properties with the default values of the property types of an entity type or relation type. Next, overwrites the properties with the value provided by the field arguments.