public ChatSchemas(IChatResolverService resolverService) { var builder = IdlSchema.Load(); var resolvers = new ChatResolvers(resolverService); Chat = SchemaTools.MakeExecutableSchemaWithIntrospection( builder, resolvers, resolvers); }
public ChatSchemas(IChatResolverService resolverService) { var builder = IdlSchema.Load(); var resolvers = new ChatResolvers(resolverService); // add cost directive support to schema builder.Add(CostAnalyzer.CostDirective); // build executable schema Chat = builder.Build(resolvers, resolvers).Result; }
public ChatSchemas(IChatResolverService resolverService) { var builder = IdlSchema.Load(); var resolvers = new ChatResolvers(resolverService); // add cost directive support to schema builder.Include(CostAnalyzer.CostDirective); // build executable schema Chat = SchemaTools.MakeExecutableSchemaWithIntrospection( builder, resolvers, resolvers); }