Class: FragmentDefinition

FragmentDefinition

new FragmentDefinition(name, typeName)

This constructor should not be invoked directly. Use the factory function Document#defineFragment to create a FragmentDefinition on a Document.

Parameters:
Name Type Description
name String

The name of the fragment definition.

typeName String

The type of the fragment.

Source:

Methods

toString() → {String}

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

Source:
Returns:

The GraphQL query string for the FragmentDefinition.

Type
String