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

Method argumentsDescription

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

Source from the content-addressed store, hash-verified

155 }
156
157 argumentsDescription(fieldOrDirectives: Field | Directive): string[] {
158
159 if (fieldOrDirectives.args.length === 0) {
160 return [];
161 }
162
163 const reduceArguments = (descriptions: string[], arg: InputValue) => descriptions.concat(this.argumentDescription(arg));
164
165 return fieldOrDirectives.args
166 .reduce(reduceArguments, [html.comment('Arguments')]);
167 }
168
169 deprecated(fieldOrEnumVal: Field | EnumValue): string {
170

Callers 1

fieldMethod · 0.95

Calls 1

commentMethod · 0.80

Tested by

no test coverage detected