<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GraphQL Archives | Blog</title>
	<atom:link href="https://onclickinnovations.com/blog/tag/graphql/feed/" rel="self" type="application/rss+xml" />
	<link>https://onclickinnovations.com/blog/tag/graphql/</link>
	<description>Onclick Innovations Pvt. Ltd.</description>
	<lastBuildDate>Mon, 10 Apr 2017 10:05:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>
<site xmlns="com-wordpress:feed-additions:1">208843066</site>	<item>
		<title>GraphQL</title>
		<link>https://onclickinnovations.com/blog/graphql/</link>
					<comments>https://onclickinnovations.com/blog/graphql/#respond</comments>
		
		<dc:creator><![CDATA[it_geeks]]></dc:creator>
		<pubDate>Fri, 03 Mar 2017 13:14:34 +0000</pubDate>
				<category><![CDATA[Custom Software Development Solutions]]></category>
		<category><![CDATA[APIs]]></category>
		<category><![CDATA[GraphQL]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Rest APIs]]></category>
		<category><![CDATA[Restful APIs]]></category>
		<guid isPermaLink="false">http://blog.onclickinnovations.com/?p=637</guid>

					<description><![CDATA[<p>#GraphQL #APIs #JSON #REST &#8230;GraphQL is a query language for API and a server-side runtime for executing queries by using a type system define for any data. GraphQL isn’t tied to any specific database or storage engine and is instead backed by your existing code and data. GraphQL is a new way to think about [&#8230;]</p>
<p>The post <a href="https://onclickinnovations.com/blog/graphql/">GraphQL</a> appeared first on <a href="https://onclickinnovations.com/blog">Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>#GraphQL #APIs #JSON #REST &#8230;GraphQL is a query language for API and a server-side runtime for executing queries by using a type system define for any data. GraphQL isn’t tied to any specific database or storage engine and is instead backed by your existing code and data. GraphQL is a new way to think about building and querying APIs. Rather than construct several REST requests to fetch data that you’re interested in, you can often make a single call to fetch the information you need. Client applications who speak GraphQL can query the schema within its capabilities. This approach&nbsp;<em>decouples clients from servers</em>&nbsp;and allows both of them to evolve and scale independently.</p>
<p>&nbsp;</p>
<p>A GraphQL request can be either a query (read operation) or a mutation (write operation). For both cases, the request is a simple string that a GraphQL service can interpret, execute, and resolve with data in a specified format. The popular response format that is usually used for mobile and web applications is the&nbsp;<em>JavaScript Object Notation.</em></p>
<p><strong>Why GraphQL?</strong></p>
<ul>
<li><strong>Single-round trip</strong>: All data is fetched in a single round-trip vs. multiple-round trips in REST. In our example above, for a REST client to get all products in each category, it would need to first fetch the store&#8217;s categories from one API endpoint, and then for each category fetch their products from another API endpoint.</li>
</ul>
<ul>
<li><strong>No over-fetching</strong>: A client has full control of fetching only data that it needs vs. in REST API, on the server-side we have to balance between minimizing multiple round-trips (&#8216;n+1&#8217; problem) and over-fetching; we can eliminate &#8216;n+1&#8217; problem we described above if we make the API that returns store categories, also return all products, but another set of clients that just wants categories of a store will be over-fetching.</li>
</ul>
<ul>
<li>One endpoint to access your data- Single API endpoint to server all data needs</li>
<li>Retrieve only the data your client needs in a single request (flexibility)</li>
<li>No need to tailor endpoints for your views</li>
<li>No versioning</li>
</ul>
<p>&nbsp;</p>
<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fonclickinnovations.com%2Fblog%2Fgraphql%2F&amp;linkname=GraphQL" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fonclickinnovations.com%2Fblog%2Fgraphql%2F&amp;linkname=GraphQL" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fonclickinnovations.com%2Fblog%2Fgraphql%2F&amp;linkname=GraphQL" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_no_icon a2a_counter addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fonclickinnovations.com%2Fblog%2Fgraphql%2F&#038;title=GraphQL" data-a2a-url="https://onclickinnovations.com/blog/graphql/" data-a2a-title="GraphQL">Share</a></p><p>The post <a href="https://onclickinnovations.com/blog/graphql/">GraphQL</a> appeared first on <a href="https://onclickinnovations.com/blog">Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://onclickinnovations.com/blog/graphql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">637</post-id>	</item>
	</channel>
</rss>
