We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dee0a8d commit 92a3ed9Copy full SHA for 92a3ed9
1 file changed
src/extensions/endpoints/EndpointsExtension.ts
@@ -69,6 +69,10 @@ export class GraphQLEndpointsExtension {
69
const endpoint = this.getRawEndpoint(endpointName)
70
try {
71
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.
76
if (!(resolved instanceof GraphQLEndpoint)) {
77
return new GraphQLEndpoint(resolved)
78
}
0 commit comments