Hello I am currently trying to migrate from a previous version of SDN to SDN 6. It has been working for normal return types so far. At the moment I am stuck at trying to return a list of objects (generics) with Neo4jClient. Example:
Beware that this is a simplified example and in the actual project I would like to avoid having to make a new class just to host the list of objects as its only property.
The Problem lies on line 12. What type can I put in the fetchAs() method, so it doesn't complain about the type of List that it's being given? I've tried just using "List.class" and while that works, the IDE warns me about "Expected: List, Received: List<House>"