Example #1
0
        public ChatSchemas(IChatResolverService resolverService)
        {
            var builder   = IdlSchema.Load();
            var resolvers = new ChatResolvers(resolverService);

            Chat = SchemaTools.MakeExecutableSchemaWithIntrospection(
                builder,
                resolvers,
                resolvers);
        }
Example #2
0
    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;
    }
Example #3
0
        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);
        }