August 2025
Intermediate to advanced
294 pages
6h 59m
English
A GraphQL API can be generated by Ash using the ash_graphql package. It’s built on top of the excellent absinthe[88] library, so it’s rock-solid and ready for production use. This will create a standard GraphQL endpoint, accepting GET requests over HTTP using GraphQL syntax and returning JSON responses.
GraphQL APIs are a little more flexible than REST APIs—but with the JSON:API specification, the gap is smaller than you might think. We won’t debate the pros and cons of each type of API here, but both approaches can create well-defined, well-structured, and well-documented interfaces for your users to work with.
You can use the igniter.install Mix task to add ash_graphql to Tunez:
| | $ mix igniter.install ... |
Read now
Unlock full access