gen1321

gen1321

SimpleGraphqlClient - an Elixir graphql client

SimpleGraphqlClient - As the name implies it’s a simple GraphQL client :slight_smile: It allows you to interact with graphql Api as simple as possible without any trouble.

But you may ask, why i wrote it even if there is a plenty of others clients.
Because some of them wants you to interpolate variables directly into your query string, and IMHO that is not best approach, some of them are too complicated for just pick them up. And some of them extremely cool like Maple but do not fit into general usage.

hex.pm: simple_graphql_client
github: GitHub - gen1321/simple_graphql_client: SimpleGraphqlClient is a graphql client, focused on simplicity and ease of use. · GitHub

Feedback and contributions are appreciated!

Most Liked

gen1321

gen1321

v0.2.0

  • Now it’s a zero config lib
  • ADD SUPPORT FOR ABSINTHE SUBSCRIPTIONS :slight_smile:
  • Opts is now a keyword list
  • Support down to elixir 1.3
gen1321

gen1321

Sure thing. I it have very different api back in a day. this why i wrote this lib

Last Post!

pierreabreup

pierreabreup

I completely understand. My point is more about have you get a problem with Neuron. I’ve been using this lib a while and works very well with a small code

def graphql_request(token) do
    Neuron.Config.set(url: "https://HOST/graphql")
    Neuron.Config.set(headers: ["Authorization": token])

    Neuron.query("""
      {
        person {
          id
        }
      }
    """)
  end

Anyway, always it’s worth there are more option and your library is very straightforward

Where Next?

Popular in Announcing Top

Hal9000
Here is my first stab at this. README pasted below. https://github.com/Hal9000/elixir_random Comments and critiques are welcome. Thank...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36820 110
New
OvermindDL1
I created a new library (rather I pulled out a couple files from my big project), it manages an operating system PID file for the BEAM. ...
New
josevalim
Hi everyone, We would like to announce that Plataformatec is working on a new MySQL driver called MyXQL. Our goal is to eventually integ...
New
tmbb
PhoenixWS - Websockets over Phoenix Channels Source code on Github here: GitHub - tmbb/phoenix_ws: Websockets implemented over Phoenix Ch...
New
Qqwy
TypeCheck: Fast and flexible runtime type-checking for your Elixir projects. Core ideas Type- and function specifications are const...
336 14774 100
New
mplatts
With HEEX released we decided to start a components library using Tailwind CSS - check it out here: Petal Components. We also have a boi...
New

Other popular topics Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

We're in Beta

About us Mission Statement