Class: Field

Field(name, optionsopt, selectionSet)

new Field(name, optionsopt, selectionSet)

This constructor should not be invoked directly. Fields are added to a selection by SelectionSetBuilder#add, SelectionSetBuilder#addConnection and SelectionSetBuilder#addInlineFragmentOn.

Parameters:
Name Type Attributes Description
name String

The name of the field.

options Object <optional>

An options object containing:

Properties
Name Type Attributes Description
args Object <optional>

Arguments for the field.

alias String <optional>

An alias for the field.

directives Object <optional>

Directives for the field.

selectionSet SelectionSet

The selection set on the field.

Source: