Skip to content

Commit

Permalink
checkpoint before break for the evening
Browse files Browse the repository at this point in the history
  • Loading branch information
glasser committed Sep 23, 2022
1 parent ebdc657 commit 1dcd2e4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/integration-testsuite/src/apolloServerTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,8 @@ export function defineIntegrationTestSuiteApolloServerTests(
});

describe('usage reporting', () => {
// FIXME ensure deferred fields get usage-reported

async function makeFakeUsageReportingServer({
status,
waitWriteResponse = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import type { FormattedExecutionResult, GraphQLFormattedError } from 'graphql';

// FIXME explain this file
// This file defines types used in our public interface that will be imported
// from `graphql-js` once graphql 17 is released. It is possible that these
// types will change slightly before the final v17 is released, in which case
// the relevant parts of our API may change incompatibly in a minor version of
// AS4; this should not affect any users who aren't explicitly installing
// pre-releases of graphql 17.

interface ObjMap<T> {
[key: string]: T;
Expand Down
10 changes: 8 additions & 2 deletions packages/server/src/incrementalDeliveryPolyfill.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { execute, ExecutionArgs, ExecutionResult, GraphQLError } from 'graphql';

// FIXME explain this file
// This file "polyfills" graphql@17's experimentalExecuteIncrementally (by
// returning a function that does not understand incremental directives if
// you're using graphql@16). The types defined in this file are largely copied
// from graphql-js.

interface ObjMap<T> {
[key: string]: T;
Expand Down Expand Up @@ -70,7 +73,10 @@ export interface GraphQLExperimentalIncrementalExecutionResults<

type PromiseOrValue<T> = Promise<T> | T;

// FIXME doc the tristate
// This starts as undefined and is set to a function or null by running
// tryToLoadGraphQL17(). If graphql-js 17 is installed, it is set to the
// experimentalExecuteIncrementally function from that package; otherwise it is
// set to null.
let graphqlExperimentalExecuteIncrementally:
| ((
args: ExecutionArgs,
Expand Down
1 change: 0 additions & 1 deletion smoke-test/smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ tsc --build tsconfig.{esm,cjs}.json
node generated/tsc/smoke-test.cjs
node generated/tsc/smoke-test.mjs

# FIXME if INCREMENTAL_DELIVERY_TESTS_ENABLED is set, run an incremental delivery test.

0 comments on commit 1dcd2e4

Please sign in to comment.