io.github.graphglue.model.property.LazyLoadingDelegate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphglue-core Show documentation
Show all versions of graphglue-core Show documentation
A library to develop annotation-based code-first GraphQL servers using GraphQL Kotlin, Spring Boot and Neo4j - excluding Spring GraphQL server dependencies
The newest version!
package io.github.graphglue.model.property
import io.github.graphglue.model.Node
/**
* Delegate which can be called to get the loaded property
*
* @param T the type of Node stored in this property
* @param R the type of property
*/
interface LazyLoadingDelegate {
/**
* Gets the loaded property
*
* @param cache used to load nodes from, if provided, not loading deleted nodes
*/
suspend operator fun invoke(cache: NodeCache? = null): R
}