ts-nodebut you can use CommonJs require as well.
graphql-requestis the most minimal and simplest to use GraphQL client. It's perfect for small scripts or simple apps. But it doesn't allow you to listen for changes for this, please use something like apollo-client.
tsconfig.jsonat the root of your project with