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
|
||||||||||||
selectionSet |
SelectionSet | The selection set on the field. |
- Source:
Methods
toString() → {String}
Returns the GraphQL query string for the Field (e.g. catAlias: cat(size: 'small') { name }
or name
).
- Source:
Returns:
The GraphQL query string for the Field.
- Type
- String