// Returns own fields and the fields of all included types. public IEnumerable <GraphQLField> GetAllFieldIncludeBaseType() { return(BaseType != null?OwnFields.Concat(BaseType.GetAllFieldIncludeBaseType()) : OwnFields); }
} // TODO: TypeKind? // Returns own fields and the fields of all included types. public IEnumerable <GraphQLField> GetQueryFields() { return(OwnFields.Concat(IncludedTypes.SelectMany(t => t.GetQueryFields()).Where(f => f.Name != "__typename"))); }