Describe the bug
The client errors when using an array type and an option type together.
Reproduction
With the following schema:
module default {
type Post {
myOptionalArrayOfStrings: array<str>;
}
}
and the following code:
[<CLIMutable>]
type Post =
{ myOptionalArrayOfStrings: string[] option }
dbClient.QuerySingleAsync<Post>("select Post{*} limit 1")
the client errors with the following message:
Error: System.NotSupportedException: Cannot find inner type of Microsoft.FSharp.Core.FSharpOption`1[System.String[]]
at EdgeDB.TypeExtensions.GetWrappingType(Type type)
at EdgeDB.Binary.Codecs.TypeVisitor.VisitCodec(ICodec& codec)
at EdgeDB.Binary.Codecs.CodecVisitor.Visit(ICodec& codec)
at EdgeDB.Binary.Codecs.TypeVisitor.VisitCodec(ICodec& codec)
at EdgeDB.Binary.Codecs.CodecVisitor.Visit(ICodec& codec)
at EdgeDB.ObjectBuilder.BuildResult[TType](EdgeDBBinaryClient client, ICodec codec, Data& data)
at EdgeDB.EdgeDBBinaryClient.QuerySingleAsync[TResult](String query, IDictionary`2 args, Nullable`1 capabilities, CancellationToken token)
at EdgeDB.EdgeDBClient.QuerySingleAsync[TResult](String query, IDictionary`2 args, Nullable`1 capabilities, CancellationToken token)
at EdgeDB.EdgeDBClient.QuerySingleAsync[TResult](String query, IDictionary`2 args, Nullable`1 capabilities, CancellationToken token)
at Program.Pipe #2 input at line 23@23.MoveNext() in /home/coop/Coding/edgedb-temp/Program.fs:line 25
Describe the bug The client errors when using an array type and an option type together.
Reproduction With the following schema:
and the following code:
the client errors with the following message:
Minimal repro here: https://github.com/Darkle/edgedb-temp
Versions (please complete the following information):
edgedb-net
version: 1.2.1