Example #1
0
 // Returns own fields and the fields of all included types.
 public IEnumerable <GraphQLField> GetAllFieldIncludeBaseType()
 {
     return(BaseType != null?OwnFields.Concat(BaseType.GetAllFieldIncludeBaseType()) : OwnFields);
 }
Example #2
0
        }                                  // 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")));
        }