naystack - v1.9.9
    Preparing search index...
    • Unwraps the id from a Graph API response, logging the API's own message when the call failed. Keeps publishing helpers to a single null return.

      Parameters

      • label: string

        Name used in the error log, e.g. "Instagram media container".

      • result: { id?: string } & GraphError | null

        Raw Graph API response.

      Returns string | null

      The id, or null on error.