示例#1
0
 protected void AddNavigationConnectionField <TReturn>(
     string name,
     Func <ResolveFieldContext <TSource>, IEnumerable <TReturn> > resolve,
     Type graphType = null,
     IEnumerable <QueryArgument> arguments = null,
     IEnumerable <string> includeNames     = null,
     int pageSize = 10)
     where TReturn : class
 {
     efGraphQlService.AddNavigationConnectionField(this, name, resolve, graphType, arguments, includeNames, pageSize);
 }
示例#2
0
 protected ConnectionBuilder <TGraph, TSource> AddNavigationConnectionField <TGraph, TReturn>(
     string name,
     Func <ResolveFieldContext <TSource>, IEnumerable <TReturn> > resolve,
     IEnumerable <QueryArgument> arguments = null,
     IEnumerable <string> includeNames     = null,
     int pageSize = 10)
     where TGraph : ObjectGraphType <TReturn>
     where TReturn : class
 {
     return(efGraphQlService.AddNavigationConnectionField <TSource, TGraph, TReturn>(this, name, resolve, arguments, includeNames, pageSize));
 }