You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying to upgrade Gremlinq from 11.2.5 to 12.6.4, however I've run into an issue which I am not sure if it's expected behavior. After migration to v12, all queries that are using Array.Empty<T>() started to fail.
.By(nameof(InvitationDbQueryResponse.Departments), i =>i.Coalesce(_ =>_.OutE<For>().InV<Department>(),
_ =>_.Constant(Array.Empty<Department>()))))
After investigation I have found out that in v12.x it converts Array.Empty<Department>() to object name like Namespace.Department[] instead of json [] which causes query error. Is it some misconfiguration on my side, an issue, or is it by design and the only way to fix it is to modify each query to use .Fold()?
Expected behavior
It should resolve _.Constant(Array.Empty<Department> to __.constant([])
Hello @krukowskid,
thanks for your interest in ExRam.Gremlinq. The issue was labelled "Repro repository missing" because although the issue template asks for either "a link to GitHub repository containing a minimal executable project structure that exposes the unexpected behaviour" or "a pull request to ExRam.Gremlinq that adds a failing unit test to the ExRam.Gremlinq tests asserting the expected behaviour", it seems you provided neither. Most problems already solve themselves when isolated and if they don't, you will have made it easier for the maintainer of this project to investigate a possible bug.
Describe the bug
I am trying to upgrade Gremlinq from 11.2.5 to 12.6.4, however I've run into an issue which I am not sure if it's expected behavior. After migration to v12, all queries that are using
Array.Empty<T>()
started to fail.After investigation I have found out that in v12.x it converts
Array.Empty<Department>()
to object name likeNamespace.Department[]
instead of json[]
which causes query error. Is it some misconfiguration on my side, an issue, or is it by design and the only way to fix it is to modify each query to use.Fold()
?Expected behavior
It should resolve
_.Constant(Array.Empty<Department>
to__.constant([])
Version information
11.2.5 -> 12.6.4
Minimal working example
The text was updated successfully, but these errors were encountered: