code: func (s *Schema) Validate(queryString string) []*errors.QueryError {
  	doc, qErr := query.Parse(queryString)
  	if qErr != nil {
  		return []*errors.QueryError{qErr}
  	}
  
  	return validation.Validate(s.schema, doc, s.maxDepth)
  }
docs: // Validate validates the given query with the schema.