log-titles
v1.0.1
Published
logs the title of each post from the user with the id 5
Downloads
1
Readme
Workflow 2 Module Assignment 3
Log Post Titles
Link to npm package
General Info
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.
Installation
To install package run:
npm install log-titles
Setup
To use in project, import to a JavaScript file and call log-titles like this:
import logTitles from "log-titles"
logTitles();
Note
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"
]