MCPcopy Create free account
hub / github.com/2fd/graphdoc / argumentsMultiline

Method argumentsMultiline

plugins/document.schema/index.ts:133–147  ·  view source on GitHub ↗
(fieldOrDirectives: Field | Directive)

Source from the content-addressed store, hash-verified

131 }
132
133 argumentsMultiline(fieldOrDirectives: Field | Directive): string[] {
134
135 if (fieldOrDirectives.args.length === 0) {
136 return [];
137 }
138
139 const maxIndex = fieldOrDirectives.args.length - 1;
140 return fieldOrDirectives.args
141 .map((arg, index) => {
142
143 return index < maxIndex ?
144 this.argument(arg) + ',' :
145 this.argument(arg);
146 });
147 }
148
149 argumentDescription(arg: InputValue): string[] {
150

Callers 1

fieldMethod · 0.95

Calls 1

argumentMethod · 0.95

Tested by

no test coverage detected