<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vitalii Vinnychenko on Medium]]></title>
        <description><![CDATA[Stories by Vitalii Vinnychenko on Medium]]></description>
        <link>https://medium.com/@VitaliyVinnychenko?source=rss-37b07cb37047------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VijrlCVUcABe2kAMKmAsdQ.jpeg</url>
            <title>Stories by Vitalii Vinnychenko on Medium</title>
            <link>https://medium.com/@VitaliyVinnychenko?source=rss-37b07cb37047------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 02:45:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@VitaliyVinnychenko/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Dive into GraphQL with Python: What is GraphQL and Graphene?]]></title>
            <link>https://medium.com/@VitaliyVinnychenko/dive-into-graphql-with-python-what-is-graphql-and-graphene-7947f09a9571?source=rss-37b07cb37047------2</link>
            <guid isPermaLink="false">https://medium.com/p/7947f09a9571</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Vitalii Vinnychenko]]></dc:creator>
            <pubDate>Sun, 19 Nov 2017 15:14:09 GMT</pubDate>
            <atom:updated>2017-11-19T15:14:09.833Z</atom:updated>
            <content:encoded><![CDATA[<p>So… To begin with, I want to say that GraphQL is not a library or framework! It is just a <a href="http://facebook.github.io/graphql/October2016/">specification</a> which was officially published by Facebook in 2015.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*RHQ7lpGDV_M3yWRa9DiR2g.png" /><figcaption>GraphQL logo</figcaption></figure><p>Here is introduction from this standard:</p><blockquote>This is a Draft RFC Specification for GraphQL, a query language created by Facebook in 2012 for describing the capabilities and requirements of data models for client‐server applications. The development of this standard started in 2015. GraphQL is a new and evolving language and is not complete. Significant enhancement will continue in future editions of this specification.</blockquote><p>GraphQL — simple query language, which helps you to get exactly that data, what you need, describe your own data types and to scale your API without any headache :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*phGKe4xsuUfV-3kIOEWuQw.gif" /><figcaption>Demonstration how GraphQL works</figcaption></figure><h4>In GraphQL ecosystem are three main classes:</h4><p><strong>Query</strong> — way to fetch data in a read-only manner from your GraphQL API (analogy of GET request in REST API).</p><p><strong>Mutation</strong> — way to change(create/update/delete) data on your server (analogy of POST request in REST API).</p><p><strong>Subscription</strong> — way to get a real-time feed of data from your server (something like traditional Web Sockets).<br>For example, someone clapped your post on Medium, while you watched the same post, and you received notification “Someone clapped your post!” As a result, counter of claps automatically updated without page reloading.</p><h3>What is schema?</h3><p>It is something like dictionary in Python or object in Javascript, if it is possible to say, where key is name of field and value is type of this field.</p><p>Supported data types in GraphQL: <em>Scalars(Int, Float, String, Boolean, ID), List, Enum, Non-null and others</em>…</p><p>You can find out more info about data types <a href="http://graphql.org/learn/schema/">here</a>.</p><h3>What is the difference between GraphQL and REST?</h3><p>The main point for me — JUST ONE ENDPOINT FOR REQUESTS!!! It is a big pleasure, when you realize you should not think about something like this: “How I should name this endpoint?” It is a waste of time! With a help of GraphQL you create a schema and write a query to an only route.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*OmeQZdVL0Pgjb41kgh7frA.png" /></figure><p><strong>Main reasons why GraphQL is better:</strong><br>1) this is a clear and simple API between the backend and the frontend;<br>2) you are not obliged to write documentation for API;<br>3) reducing communication costs, less connections;<br>4) no API versioning;<br>5) just a great tool for your API;</p><h3>What is Graphene?</h3><p><a href="http://graphene-python.org/">Graphene</a> — simple Python framework for <em>GraphQL</em> which also is pluggable with <em>Django</em>,<em> Flask</em>, <em>SQLAlchemy</em> and <em>Google App Engine</em>. It is under active development.</p><p><a href="https://github.com/graphql-python/graphene">Graphene on Github</a></p><p>I am using this framework in my current project with Flask. So, in next topics about Graphene I’m going to explain how to create queries/mutations, own schemas, data types, how to resolve data from database and other stuff.</p><p>I hope you appreciated the first part of this topic about GraphQL and Graphene and I expect to see a lot of claps %)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7947f09a9571" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>