I was scratching my head for weeks trying to figure out why my Absinthe GraphQL API mutations weren’t resolving the right output. It turns out that it was an easy fix.
Right now I’m building a GraphQL API for a project using Elixir’s Absinthe library. I’m using the Kronky library to help resolve useful error messages when a mutation fails.
All of the queries worked as expected, but the mutations always returned the same error, even when the mutation succeeds (!).
This is what it returned when I call the updatePost mutation:
Here’s what that error looks like:
{
"data": {
"updatePost": null
},
"errors": [
{
"locations": [
{
"column": 0,
"line": 7
}
],
"message": "Cannot return null for non-nullable field",
"path": [
"updatePost",
"successful"
]
}
]…
⚠️ This is the second article in a 2-part series
→️ Click here if you missed Part 1 :)
Elixir is a wonderful language. Expressive, productive, scalable, fault-tolerant… it’s pretty darn cool. But how do we manage projects which use different versions?
Enter asdf.
In part 1, we got quite a lot done:
global
keyword)local
…Elixir is a wonderful language. Expressive, productive, scalable, fault-tolerant… it’s pretty darn cool. But how do we manage projects which use different versions?
Want to get started as fast as possible? Do you only need the latest version of Elixir? Then Elixir’s official installation guide is the best place to start :)
For everyone else — if you want to easily switch between different versions of Elixir (and Erlang) for different projects: keep on reading below.
What do you do if one project needs Elixir 1.7 while another needs Elixir 1.3 …
A colleague had some trouble installing VirtualBox on macOS High Sierra v10.13.5. Here’s the error he kept encountering:
We scoured the web for solutions before finally figuring it out.
Finding a solution wasn’t as easy as we’d hoped, so hopefully our findings below will help out anyone who ran into the same stubborn error that we did.
System Preferences
Security & Privacy
iconAllow apps downloaded from: App store and identified developers
is checked.It should look like this:
About