GraphiQL API Documentation
    Preparing search index...

    Variable getQueryFactsConst

    getQueryFacts: (
        schema?: GraphQLSchema | null,
        documentString?: string | null,
    ) => OperationFacts | undefined = getOperationFacts

    for backwards compatibility

    Type Declaration

      • (
            schema?: GraphQLSchema | null,
            documentString?: string | null,
        ): OperationFacts | undefined
      • Provided previous "queryFacts", a GraphQL schema, and a query document string, return a set of facts about that query useful for GraphiQL features.

        If the query cannot be parsed, returns undefined.

        Parameters

        • Optionalschema: GraphQLSchema | null

          {GraphQLSchema} (optional)

        • OptionaldocumentString: string | null

          {string} the document you want to parse for operations (optional)

        Returns OperationFacts | undefined