Skip to content

map array of object Restfull API with Hapi

I just learned to use the Hapi nodejs Web Framework. I tried a test to post data in Postman and it worked I wanted to display data like this but I failed and it returned an error and this is so far i got, which part should I fix? I’m having trouble solving it, hope you can help Answer You

Convert Maybe[]’ to ‘string[]

I am using graphql with generated types and struggling with how to convert them to the type I need to pass it to my data service calls. @graphql-codegen has given me an args type of (I don’t really understand why its generated as a Maybe type, as the graphql schema enforces that I only query with a para…

Trying to create an icon font awesome inside JS

I am trying to create a font awesome icon next to the list item, but it keeps giving me [object HTMLElement] any Idea why ? //The icon add classes Thank you Answer The right way to insert your icon is not You should use li.appendChild(icon) instead. You can do the same with a textnode for your input text 🙂 He…