public void AddGraphTypeFields(MutationCore mutationCore)
 {
     foreach (var item in _fieldRecordRegistrations)
     {
         item.AddGraphTypeFields(mutationCore);
     }
 }
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;
        }