Skip to content

Commit 92a3ed9

Browse files
committed
style: added code comments
1 parent dee0a8d commit 92a3ed9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/extensions/endpoints/EndpointsExtension.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ export class GraphQLEndpointsExtension {
6969
const endpoint = this.getRawEndpoint(endpointName)
7070
try {
7171
const resolved = resolveEnvsInValues(endpoint, env)
72+
73+
// graphql-config extensions might have already instantiated a GraphQLEndpoint
74+
// or derived class from the GraphQLConfigEndpointConfig data. In that case,
75+
// getRawEndpoint will already return a GraphQLEndpoint and it should not be overwritten.
7276
if (!(resolved instanceof GraphQLEndpoint)) {
7377
return new GraphQLEndpoint(resolved)
7478
}

0 commit comments

Comments
 (0)