From 5b14fb3a99f5447ec4f8ad1122d04e0468529000 Mon Sep 17 00:00:00 2001 From: Jonas Ledel Date: Tue, 15 Jul 2025 14:39:17 +0200 Subject: [PATCH] Fixes #506 It should be possible to update the computed values when updating a collection --- .../Models/GetCollectionPropertiesResponse.cs | 1 + .../CollectionApi/Models/PostCollectionBody.cs | 1 + .../CollectionApi/Models/PutCollectionPropertyBody.cs | 9 ++++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/arangodb-net-standard/CollectionApi/Models/GetCollectionPropertiesResponse.cs b/arangodb-net-standard/CollectionApi/Models/GetCollectionPropertiesResponse.cs index 9894079d..be6454ed 100644 --- a/arangodb-net-standard/CollectionApi/Models/GetCollectionPropertiesResponse.cs +++ b/arangodb-net-standard/CollectionApi/Models/GetCollectionPropertiesResponse.cs @@ -107,6 +107,7 @@ public class GetCollectionPropertiesResponse /// public CollectionSchema Schema { get; set; } + /// /// A list of computed values configured for the /// collection. /// diff --git a/arangodb-net-standard/CollectionApi/Models/PostCollectionBody.cs b/arangodb-net-standard/CollectionApi/Models/PostCollectionBody.cs index 9304ea73..d487756a 100644 --- a/arangodb-net-standard/CollectionApi/Models/PostCollectionBody.cs +++ b/arangodb-net-standard/CollectionApi/Models/PostCollectionBody.cs @@ -150,6 +150,7 @@ public class PostCollectionBody /// public CollectionSchema Schema { get; set; } + /// /// Optional. A list of computed values. /// public List ComputedValues { get; set; } diff --git a/arangodb-net-standard/CollectionApi/Models/PutCollectionPropertyBody.cs b/arangodb-net-standard/CollectionApi/Models/PutCollectionPropertyBody.cs index 8b363cec..e61ef066 100644 --- a/arangodb-net-standard/CollectionApi/Models/PutCollectionPropertyBody.cs +++ b/arangodb-net-standard/CollectionApi/Models/PutCollectionPropertyBody.cs @@ -1,4 +1,6 @@ -namespace ArangoDBNetStandard.CollectionApi.Models +using System.Collections.Generic; + +namespace ArangoDBNetStandard.CollectionApi.Models { public class PutCollectionPropertyBody { @@ -53,5 +55,10 @@ public class PutCollectionPropertyBody /// The collection level schema for documents. /// public CollectionSchema Schema { get; set; } + + /// + /// A list of computed values. + /// + public List ComputedValues { get; set; } } } \ No newline at end of file