<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Graphql on Mwongera Evans</title><link>https://mwongera.online/tags/graphql/</link><description>Recent content in Graphql on Mwongera Evans</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 04 Feb 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://mwongera.online/tags/graphql/index.xml" rel="self" type="application/rss+xml"/><item><title>Building a RESTful web service</title><link>https://mwongera.online/posts/rest-api/</link><pubDate>Thu, 04 Feb 2021 00:00:00 +0000</pubDate><guid>https://mwongera.online/posts/rest-api/</guid><description>By convention, HTTP verbs, such as GET, POST, PUT, and DELETE, are mapped to retrieving, creating, updating, and removing the resources specified by the URL. RESTful web services have gained in popularity because they’re simple to utilize and implement in comparison to protocols such as the Simple Object Access Protocol (SOAP).
We'll use cURL (http://curl.haxx.se/download.html) in place of a web browser to interact with our web service.
To create a compliant REST server, you need to implement the 4 HTTP verbs.</description></item><item><title>How to Setup a GraphQL, Express and postgreSQL Server</title><link>https://mwongera.online/posts/express-js-intro/</link><pubDate>Thu, 04 Feb 2021 00:00:00 +0000</pubDate><guid>https://mwongera.online/posts/express-js-intro/</guid><description>To sart here are some advantages of using graphql:
Avoids having to create many routes to handle everything Avoids over-fetching and under-fetching data This works concurrently with API routes so the server can still be RESTful Install devDependencies
npm init -y
npm install @babel/core @babel/node @babel/preset-env nodemon --save-dev
Setting Up the Express server
First thing to do is install express and make an index.js file
npm install express
This server will be using the Hello World!</description></item></channel></rss>