restapi.models.fields.Neo4jRelationshipToCount

class restapi.models.fields.Neo4jRelationshipToCount(*, strict=False, **kwargs)[source]
Parameters:

strict (bool, default: False)

__init__(*, strict=False, **kwargs)
Parameters:

strict (bool, default: False)

Methods

__init__(*[, strict])

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

context

The context dictionary for the parent Schema.

default

default_error_messages

Default error messages.

missing

name

parent

root