Checks if the query is valid, if not returns an error string.
Parses the given string into a caliban.parsing.adt.Document object or returns a caliban.CalibanError.ParsingError if the string is not a valid GraphQL document.