NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
(cfg Config)
| 17 | |
| 18 | // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. |
| 19 | func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { |
| 20 | return &executableSchema{ |
| 21 | schema: cfg.Schema, |
| 22 | resolvers: cfg.Resolvers, |
| 23 | directives: cfg.Directives, |
| 24 | complexity: cfg.Complexity, |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | type Config struct { |
| 29 | Schema *ast.Schema |