UNPKG

grafast

Version:

Cutting edge GraphQL planning and execution engine

79 lines 3.35 kB
export declare const $$hooked: unique symbol; export declare const $$grafastContext: unique symbol; export declare const $$planResults: unique symbol; export declare const $$id: unique symbol; /** Return the value verbatim, don't execute */ export declare const $$verbatim: unique symbol; /** * If we're sure the data is the right shape and valid, we can set this key and * it can be returned directly */ export declare const $$bypassGraphQL: unique symbol; export declare const $$data: unique symbol; /** * For attaching additional metadata to the GraphQL execution result, for * example details of the plan or SQL queries or similar that were executed. */ export declare const $$extensions: unique symbol; /** * Set this key on a type if that type's serialization is idempotent (that is * to say `serialize(serialize(thing)) === serialize(thing)`). This means we * don't have to "roll-back" serialization if we need to fallback to graphql-js * execution. */ export declare const $$idempotent: unique symbol; /** * The event emitter used for outputting execution events. */ export declare const $$eventEmitter: unique symbol; /** * Used to indicate that an array has more results available via a stream. */ export declare const $$streamMore: unique symbol; export declare const $$proxy: unique symbol; /** * If an error has this property set then it's safe to send through to the user * without being masked. */ export declare const $$safeError: unique symbol; /** The layerPlan used as a subroutine for this step */ export declare const $$subroutine: unique symbol; /** For tracking the timeout a TimeoutError happened from */ export declare const $$timeout: unique symbol; /** For tracking _when_ the timeout happened (because once the JIT has warmed it might not need so long) */ export declare const $$ts: unique symbol; export declare const $$queryCache: unique symbol; /** * We store the cache directly onto the GraphQLSchema so that it gets garbage * collected along with the schema when it's not needed any more. To do so, we * attach it using this symbol. */ export declare const $$cacheByOperation: unique symbol; export declare const $$contextPlanCache: unique symbol; /** * A bitwise number representing a number of flags: * * - 0: normal execution value * - 1: errored (trappable) * - 2: null (trappable) * - 4: inhibited (trappable) * - 8: disabled due to polymorphism (untrappable) * - 16: stopped (untrappable) - e.g. due to fatal (unrecoverable) error * - 32: ... */ export type ExecutionEntryFlags = number & { readonly tsBrand?: unique symbol; }; export declare const NO_FLAGS: ExecutionEntryFlags; export declare const FLAG_ERROR: ExecutionEntryFlags; export declare const FLAG_NULL: ExecutionEntryFlags; export declare const FLAG_INHIBITED: ExecutionEntryFlags; export declare const FLAG_POLY_SKIPPED: ExecutionEntryFlags; export declare const FLAG_STOPPED: ExecutionEntryFlags; export declare const ALL_FLAGS: ExecutionEntryFlags; /** By default, accept null values as an input */ export declare const DEFAULT_ACCEPT_FLAGS: ExecutionEntryFlags; export declare const TRAPPABLE_FLAGS: ExecutionEntryFlags; export declare const DEFAULT_FORBIDDEN_FLAGS: ExecutionEntryFlags; export declare const FORBIDDEN_BY_NULLABLE_BOUNDARY_FLAGS: ExecutionEntryFlags; //# sourceMappingURL=constants.d.ts.map