(fieldOrDirectives: Field | Directive)
| 109 | } |
| 110 | |
| 111 | arguments(fieldOrDirectives: Field | Directive): string { |
| 112 | |
| 113 | if (fieldOrDirectives.args.length === 0) { |
| 114 | return ''; |
| 115 | } |
| 116 | |
| 117 | return '(' + |
| 118 | fieldOrDirectives.args |
| 119 | .map((arg) => this.argument(arg)) |
| 120 | .join(', ') + |
| 121 | ')'; |
| 122 | } |
| 123 | |
| 124 | argumentsLength(fieldOrDirectives: Field | Directive): number { |
| 125 |