@@ -933,6 +933,7 @@ def create_collection(
933933 smart_join_attribute : Optional [str ] = None ,
934934 write_concern : Optional [int ] = None ,
935935 schema : Optional [Json ] = None ,
936+ computedValues : Optional [Jsons ] = None ,
936937 ) -> Result [StandardCollection ]:
937938 """Create a new collection.
938939
@@ -1010,6 +1011,12 @@ def create_collection(
10101011 for documents. See ArangoDB documentation for more information on
10111012 document schema validation.
10121013 :type schema: dict
1014+ :param computedValues: Array of computed values for the new collection
1015+ enabling default values to new documents or the maintenance of
1016+ auxiliary attributes for search queries. Available in ArangoDB
1017+ version 3.10 or greater. See ArangoDB documentation for more
1018+ information on computed values.
1019+ :type computedValues: list
10131020 :return: Standard collection API wrapper.
10141021 :rtype: arango.collection.StandardCollection
10151022 :raise arango.exceptions.CollectionCreateError: If create fails.
@@ -1043,6 +1050,8 @@ def create_collection(
10431050 data ["writeConcern" ] = write_concern
10441051 if schema is not None :
10451052 data ["schema" ] = schema
1053+ if computedValues is not None :
1054+ data ["computedValues" ] = computedValues
10461055
10471056 params : Params = {}
10481057 if sync_replication is not None :
0 commit comments