• Reads all data from stdin and returns it as a string. This is useful for commands that accept input via piping.

    Returns Promise<undefined | string>

    A promise that resolves with the stdin content, or undefined if stdin is a TTY.

    // Usage: echo "your query" | shopify app execute
    const query = await readStdin()