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