This function will query a fake GraphQL API and log some post titles to the console.
Requires Parcel or similar to run
- Install the package:
npm i workflow-2-module-assignment-3-heiltutanvidare
- Import the function in your javascript file:
import logPostTitles from "workflow-2-module-assignment-3-heiltutanvidare";
- Call the function:
logPostTitles();
-
Run with Parcel, or similar.
-
Take a look at the developer console in your browser.