<?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 Maarten van Vliet</title>
    <link>https://maartenvanvliet.nl/tags/graphql/</link>
    <description>Recent content in graphql on Maarten van Vliet</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>Maarten van Vliet</copyright>
    <lastBuildDate>Thu, 28 Apr 2022 11:08:54 +0100</lastBuildDate><atom:link href="https://maartenvanvliet.nl/tags/graphql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Creating an Input Union Type System Directive in Absinthe</title>
      <link>https://maartenvanvliet.nl/2022/04/28/absinthe_input_union/</link>
      <pubDate>Thu, 28 Apr 2022 11:08:54 +0100</pubDate>
      
      <guid>https://maartenvanvliet.nl/2022/04/28/absinthe_input_union/</guid>
      <description>In this post I will explain how to create a type system directive in Absinthe to implement Input Unions in Graphql. The code for this post can be found on Github
A common issue with GraphQL is the lack of input unions. This means an input object that lets you choose between a number of potential input types.
For example (taken from a spec discussion):
input PetInput { cat: CatInput dog: DogInput fish: FishInput } input CatInput { name: String!</description>
    </item>
    
    <item>
      <title>Formatting GraphQL in Elixir projects</title>
      <link>https://maartenvanvliet.nl/2022/01/26/absinthe_formatter/</link>
      <pubDate>Wed, 26 Jan 2022 11:08:54 +0100</pubDate>
      
      <guid>https://maartenvanvliet.nl/2022/01/26/absinthe_formatter/</guid>
      <description>With the release of Elixir 1.13 it became possible to add plugins to the formatter. These plugins gives developers the option to hook into the Elixir formatter.
I&amp;rsquo;ve created an Elixir formatter plugin to Absinthe to format GraphQL documents. With the release of Absinthe 1.7 this is available for everyone to use.
To start, you&amp;rsquo;ll need Absinthe 1.7 or higher together with Elixir 1.13 or higher.
The Absinthe project comes with Absinthe.</description>
    </item>
    
    <item>
      <title>Absinthe subscriptions-transport-ws websocket</title>
      <link>https://maartenvanvliet.nl/project/subscriptions_transport_ws/</link>
      <pubDate>Sat, 02 Oct 2021 12:04:18 +0200</pubDate>
      
      <guid>https://maartenvanvliet.nl/project/subscriptions_transport_ws/</guid>
      <description>Absinthe subscriptions-transport-ws websocket Support subscriptions-transport-ws websocket protocol for Absinthe
https://github.com/maartenvanvliet/subscriptions-transport-ws</description>
    </item>
    
    <item>
      <title>Absinthe subscriptions with ReasonML and Urql</title>
      <link>https://maartenvanvliet.nl/2020/09/21/reason_urql_and_absinthe/</link>
      <pubDate>Mon, 21 Sep 2020 09:08:54 +0100</pubDate>
      
      <guid>https://maartenvanvliet.nl/2020/09/21/reason_urql_and_absinthe/</guid>
      <description>Lately I&amp;rsquo;ve been looking into ReasonML as a language to pick up. In the past I&amp;rsquo;ve dabbled with Elm and really enjoyed it but it&amp;rsquo;s lack of interoperability with javascript hampers its development. ReasonML offers a far better story in this regards, there are excellent React and React-Native libraries/bindings available as well as bindings for popular Graphql clients. That, combinated with great type-safety makes it a compelling alternative to Elm and Typescript.</description>
    </item>
    
    <item>
      <title>Urql graphql subscriptions with Absinthe</title>
      <link>https://maartenvanvliet.nl/2020/08/29/absinthe_and_urql/</link>
      <pubDate>Sat, 29 Aug 2020 11:08:54 +0100</pubDate>
      
      <guid>https://maartenvanvliet.nl/2020/08/29/absinthe_and_urql/</guid>
      <description>Many Graphql stacks use Apollo as the javascript client library. It&amp;rsquo;s well maintained, popular and has lot&amp;rsquo;s of examples. It also works together with Absinthe, the Elixir Graphql library. If you need to use graphql subscriptions in combination with Apollo and Absinthe there is the socket-apollo-link to connect the two.
There&amp;rsquo;s another interesting javascript client library for Graphql on the horizon, Urql. It&amp;rsquo;s a bit more lightweight and looks really promising.</description>
    </item>
    
    <item>
      <title>Absinthe SDL</title>
      <link>https://maartenvanvliet.nl/project/absinthe_sdl/</link>
      <pubDate>Wed, 02 Jan 2019 12:04:18 +0200</pubDate>
      
      <guid>https://maartenvanvliet.nl/project/absinthe_sdl/</guid>
      <description>Absinthe SDL Create Graphql SDL schemas from Absinthe schemas</description>
    </item>
    
    <item>
      <title>Writing your own Absinthe DSL with macros and middleware</title>
      <link>https://maartenvanvliet.nl/2018/12/29/absinthe_macro_dsl/</link>
      <pubDate>Sat, 29 Dec 2018 11:08:54 +0100</pubDate>
      
      <guid>https://maartenvanvliet.nl/2018/12/29/absinthe_macro_dsl/</guid>
      <description>Absinthe is a great library to do graphql in Elixir. However, when writing your resolvers you may find that you are writing some boilerplate multiple times. So, in the spirit of keeping your code DRY, in this post I&amp;rsquo;ll show how we can leverage middleware and a macro to write your own DSL for your Graphql api.
I assume some basic knowledge on how Absinthe works, most of the information can be found on in the guides</description>
    </item>
    
    <item>
      <title>Automatic Persisted Queries hex package</title>
      <link>https://maartenvanvliet.nl/project/apq/</link>
      <pubDate>Sat, 01 Dec 2018 23:04:18 +0200</pubDate>
      
      <guid>https://maartenvanvliet.nl/project/apq/</guid>
      <description>APQ hex package Cache Apollo graphql queries automatically on Absinthe</description>
    </item>
    
    <item>
      <title>Absinthe Tips and Tricks</title>
      <link>https://maartenvanvliet.nl/2018/09/05/absinthe-tips-and-tricks/</link>
      <pubDate>Wed, 05 Sep 2018 22:18:38 +0200</pubDate>
      
      <guid>https://maartenvanvliet.nl/2018/09/05/absinthe-tips-and-tricks/</guid>
      <description>Absinthe is a great package for building GraphQL api&amp;rsquo;s in Elixir. It is fast, good DSL and overall great implementation of the GraphQL spec for servers.
Working with Absinthe I&amp;rsquo;ve come across some patterns that have helped clean up code. I&amp;rsquo;d like to share some of them here.
The Self function Imagine you have an image object you want to expose, and for each image you want a separate object with just the dimensions of the image.</description>
    </item>
    
  </channel>
</rss>
