diff --git a/docs/build/html/api/schema/document.html b/docs/build/html/api/schema/document.html index e3ae383..70eaac2 100644 --- a/docs/build/html/api/schema/document.html +++ b/docs/build/html/api/schema/document.html @@ -100,7 +100,9 @@
Controls the method to use when dealing with fields passed in to the -document constructor. Possible values are ‘error’ and ‘ignore’
+document constructor. Possible values are ‘error’ and ‘ignore’. Any +fields which couldn’t be mapped can be retrieved (and edited) using +get_extra_fields()if Document.config_extra_fields is set to ‘ignore’, this method will return +a dictionary of the fields which couldn’t be mapped to the document.
+Field class docs
+class mongoalchemy.fields.Field(required=True, default=UNSET, db_field=None, allow_none=False)¶ +Called before wrapping. Calls is_valid_wrap() and raises a BadValueException if validation fails
Called before unwrapping. Calls is_valid_unwrap() and raises a BadValueException if validation fails
Validates the type and length of value
Validates the type and value of value
Validates the type and value of value
Validates the type and value of value
Validates the value’s type as well as it being in the valid date range
Checks that the correct number of elements are in value and that each element validates agains the associated Field class
Checks that the correct number of elements are in value and that each element validates agains the associated Field class
Checks that value is valid for EnumField.item_type and that value is one of the values specified when the EnumField was constructed
@@ -414,7 +423,7 @@Checks that value is valid for EnumField.item_type.
Note
@@ -446,7 +455,7 @@Checks that value is a pymongo ObjectId
A field that passes through whatever is set with no validation. Useful for free-form objects
+Always passes
Checks that the type of value is correct as well as validating the elements of value
Checks that the type of value is correct as well as validating the elements of value
Checks that value is a dict, that every key is a valid MongoDB key, and that every value validates based on DictField.value_type
Checks that value is a dict, that every key is a valid MongoDB key, and that every value validates based on DictField.value_type
Expects a list of dictionaries with k and v set to the keys and values that will be unwrapped into the output python dictionary should have
@@ -726,7 +745,7 @@Checks that value is an instance of DocumentField.document_class. if it is, then validation on its fields has already been done and no further validation is needed.
@@ -734,7 +753,7 @@Validates every field in the underlying document type. If fields is not None, only the fields in fields will be checked.
Check that value is valid for unwrapping with ComputedField.computed_type
Check that value is valid for unwrapping with ComputedField.computed_type