Class PreparsedDocumentEntry

java.lang.Object
graphql.execution.preparsed.PreparsedDocumentEntry
All Implemented Interfaces:
Serializable

@PublicApi public class PreparsedDocumentEntry extends Object implements Serializable
An instance of a preparsed document entry represents the result of a query parse and validation. In the case of failed parsing or no validation errors this class acts as an either implementation. In the case of successful parsing and failed validation this class provides both the document and the validation errors. NOTE: This class implements Serializable and hence it can be serialised and placed into a distributed cache. However we are not aiming to provide long term compatibility and do not intend for you to place this serialised data into permanent storage, with times frames that cross graphql-java versions. While we don't change things unnecessarily, we may inadvertently break the serialised compatibility across versions.
See Also:
  • Constructor Details

    • PreparsedDocumentEntry

      public PreparsedDocumentEntry(Document document, List<? extends GraphQLError> errors)
    • PreparsedDocumentEntry

      public PreparsedDocumentEntry(Document document)
    • PreparsedDocumentEntry

      public PreparsedDocumentEntry(List<? extends GraphQLError> errors)
    • PreparsedDocumentEntry

      public PreparsedDocumentEntry(GraphQLError error)
  • Method Details

    • getDocument

      public Document getDocument()
    • getErrors

      public List<? extends GraphQLError> getErrors()
    • hasErrors

      public boolean hasErrors()