Skip to content

Commit

Permalink
fixes #69
Browse files Browse the repository at this point in the history
  • Loading branch information
coronabytes committed Nov 29, 2023
1 parent d3356b2 commit 77fdaaa
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions Core.Arango.Tests/GraphTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public async Task TransactionalOperations(string serializer)

var transaction0 = await Arango.Transaction.BeginAsync("test",
new ArangoTransaction()
{ Collections = new ArangoTransactionScope { Write = new[] { "vertices", "edges" } } });
{ Collections = new ArangoTransactionScope { Write = [ "vertices", "edges" ] }});

await Arango.Graph.Vertex.CreateAsync(transaction0, "graph", "vertices", new
{
Expand Down Expand Up @@ -166,7 +166,7 @@ public async Task TransactionalOperations(string serializer)

var transaction1 = await Arango.Transaction.BeginAsync("test",
new ArangoTransaction()
{ Collections = new ArangoTransactionScope { Write = new[] { "vertices", "edges" } } });
{ Collections = new ArangoTransactionScope { Write = ["vertices", "edges" ] } });

await Arango.Graph.Edge.CreateAsync(transaction1, "graph", "edges", new
{
Expand All @@ -178,7 +178,7 @@ public async Task TransactionalOperations(string serializer)

var transaction2 = await Arango.Transaction.BeginAsync("test",
new ArangoTransaction()
{ Collections = new ArangoTransactionScope { Write = new[] { "vertices", "edges" } } });
{ Collections = new ArangoTransactionScope { Write = [ "vertices", "edges" ] } });

await Arango.Graph.Edge.CreateAsync(transaction2, "graph", "edges", new
{
Expand Down
2 changes: 1 addition & 1 deletion Core.Arango/Protocol/ArangoAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ArangoAnalyzer
[JsonPropertyName("features")]
[JsonProperty(PropertyName = "features")]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<string> Features { get; set; }
public List<string> Features { get; set; }

/// <summary>
/// Overflow properties
Expand Down
8 changes: 4 additions & 4 deletions Core.Arango/Protocol/ArangoAnalyzerProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class ArangoAnalyzerProperties : ArangoEdgeNgram
[JsonPropertyName("stopwords")]
[JsonProperty(PropertyName = "stopwords", DefaultValueHandling = DefaultValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<string> Stopwords { get; set; }
public List<string> Stopwords { get; set; }

/// <summary>
/// (Text)
Expand Down Expand Up @@ -136,7 +136,7 @@ public class ArangoAnalyzerProperties : ArangoEdgeNgram
[JsonPropertyName("pipeline")]
[JsonProperty(PropertyName = "pipeline", DefaultValueHandling = DefaultValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<ArangoAnalyzer> Pipeline { get; set; }
public List<ArangoAnalyzer> Pipeline { get; set; }


/// <summary>
Expand All @@ -146,7 +146,7 @@ public class ArangoAnalyzerProperties : ArangoEdgeNgram
[JsonPropertyName("latitude ")]
[JsonProperty(PropertyName = "latitude", DefaultValueHandling = DefaultValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<string> Latitude { get; set; }
public List<string> Latitude { get; set; }

/// <summary>
/// (GeoPoint) array of strings that describes the attribute path of the longitude value relative to the field for
Expand All @@ -155,7 +155,7 @@ public class ArangoAnalyzerProperties : ArangoEdgeNgram
[JsonPropertyName("longitude")]
[JsonProperty(PropertyName = "longitude", DefaultValueHandling = DefaultValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<string> Longitude { get; set; }
public List<string> Longitude { get; set; }

/// <summary>
/// (GeoJson) (default): index all GeoJSON geometry types (Point, Polygon etc.)
Expand Down
2 changes: 1 addition & 1 deletion Core.Arango/Protocol/ArangoCollectionUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ public class ArangoCollectionUpdate
[JsonPropertyName("computedValues")]
[JsonProperty(PropertyName = "computedValues", NullValueHandling = NullValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<ArangoComputedValue> ComputedValues { get; set; }
public List<ArangoComputedValue> ComputedValues { get; set; }
}
}
2 changes: 1 addition & 1 deletion Core.Arango/Protocol/ArangoComputedValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ArangoComputedValue
[JsonPropertyName("computeOn")]
[JsonProperty(PropertyName = "computeOn", NullValueHandling = NullValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<ArangoComputeOn> ComputeOn { get; set; }
public List<ArangoComputeOn> ComputeOn { get; set; }

/// <summary>
/// Whether the target attribute shall be set if the expression evaluates to null. You can set the option to false to
Expand Down
4 changes: 2 additions & 2 deletions Core.Arango/Protocol/ArangoEdgeDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public class ArangoEdgeDefinition
/// </summary>
[JsonPropertyName("from")]
[JsonProperty(PropertyName = "from")]
public IList<string> From { get; set; }
public List<string> From { get; set; }

/// <summary>
/// One or many vertex collections that can contain target vertices.
/// </summary>
[JsonPropertyName("to")]
[JsonProperty(PropertyName = "to")]
public IList<string> To { get; set; }
public List<string> To { get; set; }
}
}
4 changes: 2 additions & 2 deletions Core.Arango/Protocol/ArangoGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ public class ArangoGraph
/// </summary>
[JsonPropertyName("edgeDefinitions")]
[JsonProperty(PropertyName = "edgeDefinitions")]
public IList<ArangoEdgeDefinition> EdgeDefinitions { get; set; }
public List<ArangoEdgeDefinition> EdgeDefinitions { get; set; }

/// <summary>
/// An array of additional vertex collections. Documents within these collections do not have edges within this graph.
/// </summary>
[JsonPropertyName("orphanCollections")]
[JsonProperty(PropertyName = "orphanCollections", DefaultValueHandling = DefaultValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public IList<string> OrphanCollections { get; set; }
public List<string> OrphanCollections { get; set; }

/// <summary>
/// Define if the created graph should be smart (Enterprise Edition only).
Expand Down
2 changes: 1 addition & 1 deletion Core.Arango/Protocol/ArangoIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class ArangoIndex
[JsonPropertyName("fields")]
[JsonProperty(PropertyName = "fields", NullValueHandling = NullValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<string> Fields { get; set; }
public List<string> Fields { get; set; }

/// <summary>
/// (Fulltext) Minimum character length of words to index.
Expand Down
2 changes: 1 addition & 1 deletion Core.Arango/Protocol/ArangoLinkProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ArangoLinkProperty
[JsonPropertyName("analyzers")]
[JsonProperty(PropertyName = "analyzers", NullValueHandling = NullValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<string> Analyzers { get; set; }
public List<string> Analyzers { get; set; }

/// <summary>
/// If set to true, then process all document attributes. Otherwise, only consider attributes mentioned in fields.
Expand Down
4 changes: 2 additions & 2 deletions Core.Arango/Protocol/ArangoTransactionScope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ public class ArangoTransactionScope
[JsonPropertyName("read")]
[JsonProperty(PropertyName = "read", NullValueHandling = NullValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<string> Read { get; set; }
public List<string> Read { get; set; }

/// <summary>
/// Collections to write to
/// </summary>
[JsonPropertyName("write")]
[JsonProperty(PropertyName = "write", NullValueHandling = NullValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<string> Write { get; set; }
public List<string> Write { get; set; }
}
}
4 changes: 2 additions & 2 deletions Core.Arango/Protocol/ArangoView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class ArangoView : ArangoViewMutation
[JsonPropertyName("primarySort")]
[JsonProperty(PropertyName = "primarySort", NullValueHandling = NullValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<ArangoSort> PrimarySort { get; set; }
public List<ArangoSort> PrimarySort { get; set; }

/// <summary>
/// Defines how to compress the primary sort data (introduced in v3.7.1). ArangoDB v3.5 and v3.6 always compress the
Expand All @@ -110,7 +110,7 @@ public class ArangoView : ArangoViewMutation
[JsonPropertyName("storedValues")]
[JsonProperty(PropertyName = "storedValues", NullValueHandling = NullValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<ArangoViewStoredValue> StoredValues { get; set; }
public List<ArangoViewStoredValue> StoredValues { get; set; }

/// <summary>
/// Maximum number of writers (segments) cached in the pool (default: 64, use 0 to disable, immutable)
Expand Down
2 changes: 1 addition & 1 deletion Core.Arango/Protocol/ArangoViewStoredValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ArangoViewStoredValue
/// </summary>
[JsonPropertyName("fields")]
[JsonProperty(PropertyName = "fields")]
public IList<string> Fields { get; set; }
public List<string> Fields { get; set; }

/// <summary>
/// Compression
Expand Down

0 comments on commit 77fdaaa

Please sign in to comment.