(inputs ...*Source)
| 12 | ) |
| 13 | |
| 14 | func LoadSchema(inputs ...*Source) (*Schema, error) { |
| 15 | sd, err := parser.ParseSchemas(inputs...) |
| 16 | if err != nil { |
| 17 | return nil, gqlerror.WrapIfUnwrapped(err) |
| 18 | } |
| 19 | return ValidateSchemaDocument(sd) |
| 20 | } |
| 21 | |
| 22 | func ValidateSchemaDocument(sd *SchemaDocument) (*Schema, error) { |
| 23 | schema := Schema{ |
searching dependent graphs…