Exemplo n.º 1
0
        public ChatSchemas(IChatResolverService resolverService)
        {
            var builder   = IdlSchema.Load();
            var resolvers = new ChatResolvers(resolverService);

            Chat = SchemaTools.MakeExecutableSchemaWithIntrospection(
                builder,
                resolvers,
                resolvers);
        }
Exemplo n.º 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;
    }
Exemplo n.º 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);
        }