diff --git a/arango/collection.py b/arango/collection.py index a1fcbc59..6b76eb4d 100644 --- a/arango/collection.py +++ b/arango/collection.py @@ -306,11 +306,13 @@ def response_handler(resp): return self._execute(request, response_handler) - def configure(self, sync=None): + def configure(self, sync=None, schema=None): """Configure collection properties. :param sync: Block until operations are synchronized to disk. :type sync: bool + :param schema: document schema for validation of objects. + :type schema: dict :return: New collection properties. :rtype: dict :raise arango.exceptions.CollectionConfigureError: If operation fails. @@ -318,6 +320,8 @@ def configure(self, sync=None): data = {} if sync is not None: data['waitForSync'] = sync + if schema is not None: + data['schema'] = schema request = Request( method='put',