Log post titles makes a request using the Apollo client and the GraphQLZero fake GraphQL API and then loops through the posts made by user with id 5 and logs each title.
To install package run:
npm install log-titles
To use in project, import to a JavaScript file and call log-titles like this:
import logTitles from "log-titles"
logTitles();
Use a bundler such as Parcel or Webpack to import the package like this.
You will also need to add this code to your package.json file:
"browserslist": [
"last 1 Chrome version"
]