File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -306,18 +306,22 @@ def response_handler(resp):
306
306
307
307
return self ._execute (request , response_handler )
308
308
309
- def configure (self , sync = None ):
309
+ def configure (self , sync = None , schema = None ):
310
310
"""Configure collection properties.
311
311
312
312
:param sync: Block until operations are synchronized to disk.
313
313
:type sync: bool
314
+ :param schema: document schema for validation of objects.
315
+ :type schema: dict
314
316
:return: New collection properties.
315
317
:rtype: dict
316
318
:raise arango.exceptions.CollectionConfigureError: If operation fails.
317
319
"""
318
320
data = {}
319
321
if sync is not None :
320
322
data ['waitForSync' ] = sync
323
+ if schema is not None :
324
+ data ['schema' ] = schema
321
325
322
326
request = Request (
323
327
method = 'put' ,
You can’t perform that action at this time.
0 commit comments