예제 #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);
        }
예제 #2
0
 protected bool Equals(FragmentDefinition other)
 {
     return(string.Equals(Name, other.Name));
 }