io.github.graphglue.model.DomainNode.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
import org.springframework.data.neo4j.core.schema.Node
/**
* Annotation to mark a class with should be persisted in the Neo4j database
*
* @param topLevelQueryName If not empty, a top level query of this node type is available with the given name
* @param searchQueryName If not empty, a search query of this node type is available with the given name
*/
@Target(AnnotationTarget.CLASS)
@MustBeDocumented
@Node
annotation class DomainNode(val topLevelQueryName: String = "", val searchQueryName: String = "")