Interface DocumentSource

All Known Implementing Classes:
CachingDocumentSource, ResourceDocumentSource

public interface DocumentSource
Strategy to locate a GraphQL document by a name.
Since:
1.0.0
Author:
Rossen Stoyanchev
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<String>
    Return the document that matches the given name.
  • Method Details

    • getDocument

      reactor.core.publisher.Mono<String> getDocument(String name)
      Return the document that matches the given name.
      Parameters:
      name - the name to use for the lookup
      Returns:
      Mono that completes either with the document content or with an error, but never empty.