Class GraphQlRequestPredicates

java.lang.Object
org.springframework.graphql.server.webflux.GraphQlRequestPredicates

public final class GraphQlRequestPredicates extends Object
RequestPredicate implementations tailored for GraphQL reactive endpoints.
Since:
1.3.0
Author:
Brian Clozel, Rossen Stoyanchev
  • Method Details

    • graphQlHttp

      public static RequestPredicate graphQlHttp(String path)
      Create a predicate that matches GraphQL HTTP requests for the configured path.
      Parameters:
      path - the path on which the GraphQL HTTP endpoint is mapped
      See Also:
    • graphQlSse

      public static RequestPredicate graphQlSse(String path)
      Create a predicate that matches GraphQL SSE over HTTP requests for the configured path.
      Parameters:
      path - the path on which the GraphQL SSE endpoint is mapped
      See Also: