public final class DocumentRepository
extends java.lang.Object
| Constructor and Description |
|---|
DocumentRepository() |
| Modifier and Type | Method and Description |
|---|---|
graphql.language.Document |
getDocument(graphql.schema.GraphQLSchema schema,
java.util.List<java.nio.file.Path> components)
Return a GraphQL Document instance constructed from the supplied files.
|
@Nonnull
public graphql.language.Document getDocument(@Nonnull
graphql.schema.GraphQLSchema schema,
@Nonnull
java.util.List<java.nio.file.Path> components)
throws DocumentReadException,
DocumentValidateException
schema - the schema against which the document is validate.components - the file components that are used to construct the document.DocumentValidateException - if the document can not be correctly parsed or validated.DocumentReadException - if there is an error reading a file component.