Exemplo n.º 1
0
        public IGraphQLBuilder AddSchema(string name, Action <SchemaConfiguration> configure)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            var schema = new SchemaConfiguration(name);

            configure(schema);

            _services.AddSingleton <ISchemaProvider>(schema);

            return(this);
        }
Exemplo n.º 2
0
        internal IGraphQLBuilder AddSchema(SchemaConfiguration schema)
        {
            _services.AddSingleton <ISchemaProvider>(schema);

            return(this);
        }