This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApolloServerPlugin, GraphQLServiceContext } from "apollo-server-plugin-base"; | |
import { GraphQLSchema, separateOperations } from "graphql"; | |
import { fieldConfigEstimator, getComplexity, simpleEstimator } from "graphql-query-complexity"; | |
export class ApolloComplexityPlugin implements ApolloServerPlugin { | |
private schema: GraphQLSchema; | |
constructor(private maxComplexity: number) { } | |
public serverWillStart(service: GraphQLServiceContext) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN mkdir -p /opt/bin; mkdir -p /opt/doc; mkdir -p /opt/man; mkdir -p /opt/share; wget -O - https://github.com/Kitware/CMake/releases/download/v3.26.2/cmake-3.26.2-linux-x86_64.tar.gz | tar -xvzf - -C /opt --strip-components=1 | |
ENV PATH=/opt/bin:${PATH} | |
RUN cmake --version |
OlderNewer