Interface ReactiveNeo4jClient.MappingSpec<T>
- Type Parameters:
T- the resulting type of this mapping
- All Superinterfaces:
ReactiveNeo4jClient.RecordFetchSpec<T>
- Enclosing interface:
ReactiveNeo4jClient
public static interface ReactiveNeo4jClient.MappingSpec<T>
extends ReactiveNeo4jClient.RecordFetchSpec<T>
Step for defining the mapping.
- Since:
- 6.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionmappedBy(BiFunction<org.neo4j.driver.types.TypeSystem, org.neo4j.driver.Record, T> mappingFunction) The mapping function is responsible to turn one record into one domain object.Methods inherited from interface ReactiveNeo4jClient.RecordFetchSpec
all, first, one
-
Method Details
-
mappedBy
ReactiveNeo4jClient.RecordFetchSpec<T> mappedBy(BiFunction<org.neo4j.driver.types.TypeSystem, org.neo4j.driver.Record, T> mappingFunction) The mapping function is responsible to turn one record into one domain object. It will receive the record itself and in addition, the type system that the Neo4j Java-Driver used while executing the query.- Parameters:
mappingFunction- the mapping function used to create new domain objects- Returns:
- a specification how to fetch one or more records.
-