ArangoDB-NET
ArangoDB-NET copied to clipboard
Driver fails creating edge collection
With version 3.4 of Arangodb there is an issue creating a collection of "Edge" type. The collection created is always of Document type. This is due to the Json msg passed where the value of parameter "type" is "Edge" instead of 3. The same thing happens with Document type where the value passed is "Document" instead of 2 but in this case the mismatch has no effect since the default (type: 2) is applied.
version 3.4.1 also have this issue.
in client ACollection.cs change EnumFormatObject to EnumFormat.Integer, recompile and progress your work, i'll try to commit it into git:
public ACollection Type(ACollectionType value)
{
// set enum format explicitely to override global setting
_parameters.Enum(ParameterName.Type, value, EnumFormat.Integer);
return this;
}
my repaired driver https://github.com/wedrowycz/ArangoDB-NET.git branch "fromwedrowycz"
Hi, the actual problem here is, that the camel case was never documented to be supported. Lowercase-E should also work.