Setu-TS
    Preparing search index...

    Interface GraphqlSchemaLike

    Structural facade for a graphql@16 schema.

    The member signatures mirror what the real GraphQLSchema produces so that a genuine schema is assignable here without a cast (M70i X6-3). graphql@16 returns Maybe<T> (T | null | undefined) from its type getters and ReadonlyArray from its plural getters, so the facade admits both. toAST is optional: no src reader consumes it, and the real GraphQLSchema does not expose it, so requiring it excluded every schema the library builds.

    interface GraphqlSchemaLike {
        getDirective(name: string): GraphqlDirectiveLike | null | undefined;
        getDirectives(): readonly GraphqlDirectiveLike[];
        getMutationType(): GraphqlObjectTypeLike | null | undefined;
        getPossibleTypes(
            abstractType: GraphqlAbstractTypeLike,
        ): readonly GraphqlObjectTypeLike[];
        getQueryType(): GraphqlObjectTypeLike | null | undefined;
        getSubscriptionType(): GraphqlObjectTypeLike | null | undefined;
        getType(name: string): GraphqlNamedTypeLike | null | undefined;
        toAST?(): unknown;
    }
    Index