Class: InlineFragment

InlineFragment

new InlineFragment(typeName, selectionSet)

This constructor should not be invoked directly. Use the factory function SelectionSetBuilder#addInlineFragmentOn to create an InlineFragment.

Parameters:
Name Type Description
typeName String

The type of the fragment.

selectionSet SelectionSet

The selection set on the fragment.

Source:

Methods

toString() → {String}

Returns the GraphQL query string for the InlineFragment (e.g. ... on Cat { name }).

Source:
Returns:

The GraphQL query string for the InlineFragment.

Type
String