Reads all data from stdin and returns it as a string. This is useful for commands that accept input via piping.
A promise that resolves with the stdin content, or undefined if stdin is a TTY.
// Usage: echo "your query" | shopify app executeconst query = await readStdin() Copy
// Usage: echo "your query" | shopify app executeconst query = await readStdin()
Reads all data from stdin and returns it as a string. This is useful for commands that accept input via piping.