<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Michael Oshosanya </title>
    <description>The latest articles on DEV Community by Michael Oshosanya  (@moshosanya).</description>
    <link>https://dev.to/moshosanya</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F212698%2F946dacd5-306c-4235-afa3-7601e7f50d04.jpeg</url>
      <title>DEV Community: Michael Oshosanya </title>
      <link>https://dev.to/moshosanya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/moshosanya"/>
    <language>en</language>
    <item>
      <title>Export graphql schema to postman or insomnia collections</title>
      <dc:creator>Michael Oshosanya </dc:creator>
      <pubDate>Sat, 26 Oct 2019 18:12:54 +0000</pubDate>
      <link>https://dev.to/moshosanya/export-graphql-schema-to-postman-or-insomnia-collections-470o</link>
      <guid>https://dev.to/moshosanya/export-graphql-schema-to-postman-or-insomnia-collections-470o</guid>
      <description>&lt;p&gt;I happened to have been assigned to work on a GraphQL project and I needed to make requests to the GraphQL server. The options were GraphQL playground and Altair GraphQL client which I seemed not to like for reasons I cannot particularly articulate so I decided to fall back on Insomnia or Postman which I am more familiar with. However, the support for GraphQL on those clients were not so good as they couldn't retrieve all the mutation and query schemas from the server, it's otherwise called schema introspection.&lt;/p&gt;

&lt;p&gt;So I set out to build a tool that could get the schema and transform them into Postman and Insomnia collections, I also decided to use typescript as I wanted to learn it at that point and this was the available project.&lt;/p&gt;

&lt;p&gt;The project lives at &lt;a href="https://github.com/oshosanya/graphql-export"&gt;here on github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To use the tool;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yarn global add graphql-export

// For postman exports
graphql-export -u http://my-graph-ql-server-root -f postman

//For insomnia exports
graphql-export -u http://my-graph-ql-server-root -f insomnia
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;This creates a json file in the directory where you run the tool which you can import into Postman or Insomnia as the case may be.&lt;/p&gt;

&lt;p&gt;Pull requests, code reviews and suggestions are all welcome.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>typescript</category>
      <category>graphql</category>
    </item>
  </channel>
</rss>
