SDN custom query with multiple different domain types

I have a usecase, where I need to query multiple different domain types with one Cypher query. The result will look like this:


Note that the overall structure does not resemble a domain type.
According to the documentation, I can perform custom queries and still returning domain types, but as far as I know, this is limited to returning domain types directly.
The other way to perform custom queries I found in the documentation is custom queries and custom mappings, however, as this approach uses the Neo4jClient, there is no domain type mapping information as far as I know.

So my question is, is there any way to map the results of the query I described earlier?

The first link does not work, so I just hoping that you are not linking to my potential solution :slightly_smiling_face:
It is possible to get entity mapping into a Neo4jClient mapping manually:

BiFunction<TypeSystem, MapAccessor, DomainElementA> mappingFunction1 = neo4jMappingContext.getRequiredMappingFunctionFor(DomainElementA.class);
BiFunction<TypeSystem, MapAccessor, DomainElementB> mappingFunction2 = neo4jMappingContext.getRequiredMappingFunctionFor(DomainElementB.class);
Collection<QueryResultWrapper> wrapper = neo4jClient.query("Match(...) return As, Bs, Cs")
                .mappedBy((typeSystem, record) -> {
                    DomainElementA a = mappingFunction1.apply(typeSystem, record.get("As"));

                   // .....

Copied from Difficulty mapping InternalNodes to domain model objects in custom queries · Issue #2288 · spring-projects/spring-data-neo4j · GitHub and a little bit adjusted.

The neo4jMappingContext.getRequiredMappingFunctionFor function was exactly what I missed.
Thanks a lot for the help