runHttpQuery.d.ts 1.0 KB

123456789101112131415
  1. import type { BaseContext, HTTPGraphQLHead, HTTPGraphQLRequest, HTTPGraphQLResponse } from './externalTypes/index.js';
  2. import { type ApolloServer, type ApolloServerInternals, type SchemaDerivedData } from './ApolloServer.js';
  3. import { type FormattedExecutionResult } from 'graphql';
  4. export declare function runHttpQuery<TContext extends BaseContext>({ server, httpRequest, contextValue, schemaDerivedData, internals, sharedResponseHTTPGraphQLHead, }: {
  5. server: ApolloServer<TContext>;
  6. httpRequest: HTTPGraphQLRequest;
  7. contextValue: TContext;
  8. schemaDerivedData: SchemaDerivedData;
  9. internals: ApolloServerInternals<TContext>;
  10. sharedResponseHTTPGraphQLHead: HTTPGraphQLHead | null;
  11. }): Promise<HTTPGraphQLResponse>;
  12. export declare function prettyJSONStringify(value: FormattedExecutionResult): string;
  13. export declare function newHTTPGraphQLHead(status?: number): HTTPGraphQLHead;
  14. export declare function mergeHTTPGraphQLHead(target: HTTPGraphQLHead, source: HTTPGraphQLHead): void;
  15. //# sourceMappingURL=runHttpQuery.d.ts.map