public void AddGraphTypeFields(SubscriptionCore subscriptionCore)
 {
     foreach (var item in _fieldRecordRegistrations)
     {
         item.AddGraphTypeFields(subscriptionCore);
     }
 }
Esempio n. 2
0
        public SchemaCore(QueryCore query,
                          MutationCore mutation,
                          SubscriptionCore subscription,
                          IDependencyResolver resolver)
        {
            if (query.RegistrationCount > 0)
            {
                Query = query;
            }
            if (mutation.RegistrationCount > 0)
            {
                Mutation = mutation;
            }
            if (subscription.RegistrationCount > 0)
            {
                Subscription = subscription;
            }

            DependencyResolver = resolver;
        }