"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthenticatedDataSource = void 0;
const gateway_1 = require("@apollo/gateway");
class AuthenticatedDataSource extends gateway_1.RemoteGraphQLDataSource {
    willSendRequest({ request, context }) {
        Object.entries(context.headers || {}).forEach(([key, value]) => request.http.headers.set(key, value));
    }
}
exports.AuthenticatedDataSource = AuthenticatedDataSource;
//# sourceMappingURL=auth-data-source.js.map