Module spring.data.neo4j
Interface Neo4jClient.MappingSpec<T>
- Type Parameters:
T- The resulting type of this mapping
- All Superinterfaces:
Neo4jClient.RecordFetchSpec<T>
- Enclosing interface:
- Neo4jClient
- Since:
- 6.0
-
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 org.springframework.data.neo4j.core.Neo4jClient.RecordFetchSpec
all, first, one
-
Method Details
-
mappedBy
Neo4jClient.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.
-