示例#1
0
 public void AddGraphTypeFields(QueryCore queryCore)
 {
     foreach (var item in _fieldRecordRegistrations)
     {
         item.AddGraphTypeFields(queryCore);
     }
 }
示例#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;
        }