GraphQLFragmentInfo

constructor(name: String, document: String, variableUsages: List<String> = emptyList())(source)

Parameters

name

The fragment name, e.g. "UserFields".

document

The source text of the fragment definition.

variableUsages

Names of variables referenced within the fragment's selection set (e.g. ["format"] if the fragment contains age(format: $format)). These are not variable definitions — fragments cannot define variables per the GraphQL spec — but rather variables the fragment uses that must be declared by the consuming operation.