to Fragment
Renders this selection set as a GraphQL fragment.
The fragment preserves aliases, arguments, directives, and request variables. A synthetic __typename is used when this selection set is empty so the document remains valid GraphQL.
Throws
if this selection set cannot be rendered.