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

OvermindDL1
Been making an MLElixir thing (not released yet…) for fun in spare time in the past day. I’m just trying to see how much I can get an ML...
132 14410 106
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
kelvinst
Hey everyone! Well, we made this lib a while ago and now we decided to finally go out and public with it! It’s a tool for creating and m...
New
tmbb
I’ve been working on two packages (not on hex.pm yet) to build admin interfaces for phoenix apps: bureaucrat - which contains a bunch ...
New
RobertDober
Earmark is a pure-Elixir Markdown converter. It is intended to be used as a library (just call Earmark.as_html), but can also be used as...
239 12978 134
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New

Other popular topics Top

lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement