Skip to content

Instantly share code, notes, and snippets.

import { IntrospectAndCompose, RemoteGraphQLDataSource, ServiceDefinition } from '@apollo/gateway';
import { composeServices } from '@apollo/composition';
import { Service, loadServicesFromRemoteEndpoint } from '@apollo/gateway/dist/supergraphManagers/IntrospectAndCompose/loadServicesFromRemoteEndpoint';
import { Logger } from '@nestjs/common';
import fetch from 'node-fetch';
// https://github.com/apollographql/federation/issues/355
// @ts-ignore
export class CustomIntrospectAndCompose extends IntrospectAndCompose {
version: "3.7"
x-default-opts: &default-opts
logging:
options:
max-size: "1m"
secrets:
pub_key:
external: true
version: "3.7"
volumes:
keys-server:
keys-client:
services:
ssh-server:
image: linuxserver/openssh-server
container_name: server
version: "3.7"
volumes:
keys-server:
keys-client:
# sshfs-volume-mount-example:
# driver: vieux/sshfs:latest
# driver_opts:
# reconnect: ""
# ServerAliveInterval: 15