Exemple #1
0
        public InlineFragment AddInlineFragment(Type typeCondition, bool selectTypeName)
        {
            var result = new InlineFragment(typeCondition);

            if (selectTypeName)
            {
                result.Selections.Add(new FieldSelection("__typename", null));
            }

            head.Selections.Add(result);
            head = result;
            return(result);
        }
        public InlineFragment AddInlineFragment(Type typeCondition, bool selectTypeName)
        {
            var result = new InlineFragment(typeCondition);

            if (selectTypeName)
            {
                AddField(Head, new FieldSelection("__typename", null), false);
            }

            Head.Selections.Add(result);
            Head = result;
            return(result);
        }