code: func (s *Schema) ToJSON() ([]byte, error) {
  	result := s.exec(context.Background(), introspectionQuery, "", nil, &resolvable.Schema{
  		Query:  &resolvable.Object{},
  		Schema: *s.schema,
  	})
  	if len(result.Errors) != 0 {
  		panic(result.Errors[0])
  	}
  	return json.MarshalIndent(result.Data, "", "\t")
  }
docs: // ToJSON encodes the schema in a JSON format used by tools like Relay.