restapi.models.fields.Neo4jRelationshipToMany
- class restapi.models.fields.Neo4jRelationshipToMany(nested, *, default=<marshmallow.missing>, only=None, exclude=(), many=False, unknown=None, **kwargs)[source]
- Parameters:
nested (
Any)default (
Any, default:<marshmallow.missing>)only (
Union[Sequence[str],AbstractSet[str],None], default:None)exclude (
Union[Sequence[str],AbstractSet[str]], default:())many (
bool, default:False)unknown (
Optional[str], default:None)kwargs (
Any)
- __init__(nested, *, default=<marshmallow.missing>, only=None, exclude=(), many=False, unknown=None, **kwargs)
- Parameters:
nested (
Any)default (
Any, default:<marshmallow.missing>)only (
Union[Sequence[str],AbstractSet[str],None], default:None)exclude (
Union[Sequence[str],AbstractSet[str]], default:())many (
bool, default:False)unknown (
Optional[str], default:None)kwargs (
Any)
Methods
__init__(nested, *[, default, only, ...])deserialize(value[, attr, data])Deserialize
value.fail(key, **kwargs)Helper method that raises a ValidationError with an error message from
self.error_messages.get_value(obj, attr[, accessor, default])Return the value for a given key from an object.
make_error(key, **kwargs)Helper method to make a ValidationError with an error message from
self.error_messages.serialize(attr, obj[, accessor])Pulls the value for the given key from the object, applies the field's formatting and returns the result.
Attributes
The context dictionary for the parent
Schema.Default error messages.
The nested Schema object.