osl-workflow-2-ma-3-theresel
v1.0.1
Published
package making a request to graphqlzero api and getting post of user with id 5. logging title of each post
Downloads
36
Readme
Workflow 2 Module Assignment 3
Start project
Enter the following commands in the terminal to start the project
npm install
npm run buildUse NPM Package
In a JavaScript file, import the following from the NPM Package and run the function:
import getGqlPosts from "osl-workflow-2-ma-3-theresel";
getGqlPosts();Level 1
Using the GraphQLZero API, make a request to get the posts of the user with an id of 5. Request only the title and body of each post.
Loop through the results and console log the title of each result.
Level 2
Turn your assignment into an NPM package and add the link to the README.
