Skip to content

Commit

Permalink
add HTTPHeaderMapping.from
Browse files Browse the repository at this point in the history
  • Loading branch information
lennyburdette committed Jul 1, 2024
1 parent 2dd383c commit 6f890c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internals-js/src/specs/connectSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,16 @@ export class ConnectSpecDefinition extends FeatureDefinition {
/*
input HTTPHeaderMapping {
name: String!
as: String
as: String @deprecated(reason: "Use 'from' instead")
from: String
value: String
}
*/
const HTTPHeaderMapping = schema.addType(new InputObjectType(this.typeNameInSchema(schema, HTTP_HEADER_MAPPING)!));
HTTPHeaderMapping.addField(new InputFieldDefinition('name')).type =

Check warning on line 80 in internals-js/src/specs/connectSpec.ts

View check run for this annotation

Codecov / codecov/patch

internals-js/src/specs/connectSpec.ts#L79-L80

Added lines #L79 - L80 were not covered by tests
new NonNullType(schema.stringType());
HTTPHeaderMapping.addField(new InputFieldDefinition('from')).type =

Check warning on line 82 in internals-js/src/specs/connectSpec.ts

View check run for this annotation

Codecov / codecov/patch

internals-js/src/specs/connectSpec.ts#L82

Added line #L82 was not covered by tests
schema.stringType();
HTTPHeaderMapping.addField(new InputFieldDefinition('as')).type =

Check warning on line 84 in internals-js/src/specs/connectSpec.ts

View check run for this annotation

Codecov / codecov/patch

internals-js/src/specs/connectSpec.ts#L84

Added line #L84 was not covered by tests
schema.stringType();
HTTPHeaderMapping.addField(new InputFieldDefinition('value')).type =

Check warning on line 86 in internals-js/src/specs/connectSpec.ts

View check run for this annotation

Codecov / codecov/patch

internals-js/src/specs/connectSpec.ts#L86

Added line #L86 was not covered by tests
Expand Down

0 comments on commit 6f890c5

Please sign in to comment.