private GraphTypesLookup CreateTypesLookup() { var resolvedTypes = _additionalTypes.Select(ResolveType).ToList(); var types = new List <GraphType> { Query, Mutation } .Concat(resolvedTypes) .Where(x => x != null) .ToList(); return(GraphTypesLookup.Create(types, ResolveType)); }
private GraphTypesLookup CreateTypesLookup() { var resolvedTypes = _additionalTypes.Select(t => ResolveType(t.GetNamedType())).ToList(); var types = _additionalInstances.Concat( new IGraphType[] { Query, Mutation, Subscription }) .Concat(resolvedTypes) .Where(x => x != null) .ToList(); return(GraphTypesLookup.Create(types, _directives, ResolveType)); }
private GraphTypesLookup CreateTypesLookup() { return(GraphTypesLookup.Create(new[] { Query, Mutation }, ResolveType)); }