Пример #1
0
        public MainSchema(
            QueryObject query,
            MutationObject mutation,
            SubscriptionObject subscription,
            IDependencyResolver resolver)

            : base(resolver)
        {
            this.Query        = resolver.Resolve <QueryObject>();
            this.Mutation     = mutation;
            this.Subscription = subscription;
        }
Пример #2
0
        public MainSchema(
            QueryObject query,
            MutationObject mutation,
            SubscriptionObject subscription,
            IDependencyResolver resolver)

            : base(resolver)
        {
            this.Query = resolver.Resolve <QueryObject>();

            // Fixes default camel casing of field names.
            this.FieldNameConverter = new DefaultFieldNameConverter();
        }