Return single object instead array for exactly one relation between node

I stumpled on this problem as well, in my case I am using Java DGraph4j.

However, the problem was completely solved by using Jackson as a serialization library that can deserialize Single Element Lists into a single object.

In my opinion, it is the best solution to use a fitting serialization library.

1 Like