Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Resolve can return value or raise, or use tuples #112

Merged
merged 1 commit into from
Dec 21, 2016

Conversation

mynameisrufus
Copy link
Contributor

In your resolve function you can now return a tuple with {:ok, result} or
{:error, message}. Returning the result and raising works as before.

In your resolve function you can now return a tuple with {:ok, result} or
{:error, message}. Returning the result and raising works as before.
@joshprice
Copy link
Member

👍

@joshprice joshprice merged commit 43bccc0 into graphql-elixir:master Dec 21, 2016
@joshprice
Copy link
Member

Closes #64. To bubble an error you can either raise as before or return an :ok :error tuple.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants