Example #1
0
        public FragmentDefinition Fragment(GraphQLFragmentDefinition source)
        {
            var frag = new FragmentDefinition(Name(source.Name)).WithLocation(source);

            frag.CommentNode  = Comment(source.Comment);
            frag.Type         = NamedType(source.TypeCondition);
            frag.SelectionSet = SelectionSet(source.SelectionSet);
            frag.Directives   = Directives(source.Directives);
            return(frag);
        }
 protected bool Equals(FragmentDefinition other)
 {
     return(string.Equals(Name, other.Name));
 }