Package org.springframework.graphql.data
Annotation Interface GraphQlRepository
Specialization of the
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.
- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
-
Optional Element Summary
-
Element Details
-
typeName
String typeNameUse this to customize the name of the GraphQL type that matches to the repository domain type.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.
- Default:
- ""
-