@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Repository
public @interface GraphQlRepository
Repository stereotype that marks a repository
as intended for use in a GraphQL application for data fetching.
A Spring Data repository that is an
QuerydslPredicateExecutor or
ReactiveQuerydslPredicateExecutor is
eligible for auto-binding to queries whose return type matches the repository
domain type name.
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
typeName
Use this to customize the name of the GraphQL type that matches to the
repository domain type.
|
public abstract java.lang.String typeName
By default, if this is not specified, then the simple name of the repository domain type is used to match to the GraphQL schema type.