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 TypeMethodDescriptionreactor.core.publisher.Mono<String>getDocument(String name) Return the document that matches the given name.
-
Method Details
-
getDocument
Return the document that matches the given name.- Parameters:
name- the name to use for the lookup- Returns:
Monothat completes either with the document content or with an error, but never empty.
-