theduke

theduke

Hey there.

I want to try out GraphQL in Elixir for a small project,
and there seem to be two competing implementations for Elixir.

http://graphql-elixir.org/ and http://absinthe-graphql.org/.

Both recently active and with equal amounts of GH stars.

Does anyone have experience with either, and can comment on the differences?

Showing Posts 1 to 10

OvermindDL1

OvermindDL1

I’ve used a bit of absinthe, but from what I’ve seen it seems GraphQL is more low level and last I saw it did not have the (graphql-spec-required) documentation paths. Absinthe does more for you and follows the spec better, but you do have to work ‘within’ it more. I ended up choosing Absinthe for a few reasons and of the little area I’ve used it, it was quite nice.

For note, GraphQL is a lot older than Absinthe, Absinthe is quite new and was made to follow the spec as well as it does. If they have the same stars now (they certainly did not when it was new just recently) then that says something about Absinthe as well.

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Hey there!

Disclaimer: I’m one of the authors of Absinthe. You can find my slides from ElixirConf here, hopefully the talk itself up soon: No REST for the Wicked - Speaker Deck

Absinthe was created about 9 months ago when we really wanted to use GraphQL in production here at http://cargosense.com/. At the time graphql-elixir was still rather young and we had production needs we wanted to move on very quickly.

Our goal was to make something correct, easy to use, idiomatic, and performant. In concrete terms this means we right now:

  • Validate your schema at compile time. This catches errors, sets defaults with zero overhead, and ensures maximum performance by baking computed data into functions
  • Return extensive error information when queries are executed, helping your clients better use your API.
  • Secondary libraries to assist with common client side patterns like Relay Connections
  • Easy use of anonymous functions in schemas.

It means in the future:

  • We’re reworking execution to be user extensible.
  • This new execution model will enable subscriptions and fancy directives like @defer, @live
  • Our new execution branch has tests we copied almost verbatim from the reference implementation
  • We’re aiming to enable pre-compiled documents for when you want to shave off those last microseconds from a query.

Do you have any specific questions?

11
Post #2
collegeimprovements

collegeimprovements

Absinthe is the one you should go for at this time. They are also very active on slack and are nice people.

The only thing I found troublesome is that we use guardian for authentication and though we are able to see graphiql, it doesn’t work: means we can see the schema but we are still not able to run any query through graphiql!

OvermindDL1

OvermindDL1

I use guardian and I have absinthe in a little area as a test in my big server, although I have the guardian token given to the client and they pass it back with each request, so it is done very manually, not 'plug’y.

theduke

theduke OP

Thanks guys, I’ll start out with Absinthe then I guess.

adamk

adamk

@collegeimprovements if you are using jwt, you can manually add the auth header including the token in graphiql and assuming it’s valid, you should be able to reach your secure endpoints as well.

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

We found a version of GraphIQL the other day that made setting headers easy, we hope to add that soon. With that capability it should be easy to set JWT headers or other header based authentication methods.

mkunikow

mkunikow

Maybe little off topic but there is interesting project https://scaphold.io/ GraphQL as service. Could be nice alternative to Firebase. They are using https://www.rethinkdb.com/ as database.
GraphQL Archives - Software Engineering Daily

themarlzy

themarlzy

Is the talk up now?

I’ve just finished the elixir fountain Ep where you talked about this and interested to see it. I think I read in another thread it was recorded through a piece of cheese, so the audio caused it to be torn from us?

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Yeah they took it down to do further process. Unfortunately it is still not up yet. Mine was not the only one affected. Definitely frustrating.

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
jaybe78
Hello, I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter). The diffic...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
widianto
I think I’ve found a small improvement I could contribute to <%= web_namespace %>.CoreComponents (installer/templates/phx_web/compo...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
webofbits
Aludel - LLM Evaluation Workbench Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews