region ************************** generated!.gotpl ************************** NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
(cfg Config)
| 22 | |
| 23 | // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. |
| 24 | func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { |
| 25 | return &executableSchema{ |
| 26 | schema: cfg.Schema, |
| 27 | resolvers: cfg.Resolvers, |
| 28 | directives: cfg.Directives, |
| 29 | complexity: cfg.Complexity, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | type Config struct { |
| 34 | Schema *ast.Schema |