edgedb / edgedb-net

The official .NET client library for EdgeDB
https://edgedb.com
Apache License 2.0
82 stars 9 forks source link

Cannot deserialize data to Person[] / Index was outside the bounds of the array. #35

Closed mk-idesis closed 1 year ago

mk-idesis commented 1 year ago

Running links-example results in an System.InvalidOperationException: Cannot deserialize data to Person[] exception.

Changing property Actors in class Movie to type List<Person>?:

public class Movie
{
    ...

    [EdgeDBProperty("actors")]
    public List<Person>? Actors { get; set; } // multi link, can also use List<Person> here
}

results in an System.IndexOutOfRangeException: Index was outside the bounds of the array. exception.