Annotation Interface GraphQlRepository


@Target(TYPE) @Retention(RUNTIME) @Documented @Repository public @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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Use this to customize the name of the GraphQL type that matches to the repository domain type.
  • Element Details

    • typeName

      String typeName
      Use 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:
      ""