Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to return an error from a calculation #887

Open
rbino opened this issue Feb 13, 2024 · 0 comments
Open

Add a way to return an error from a calculation #887

rbino opened this issue Feb 13, 2024 · 0 comments
Labels
advanced enhancement New feature or request

Comments

@rbino
Copy link
Contributor

rbino commented Feb 13, 2024

As discussed on the Elixir forum, it would be nice to have a way to expose the failure of a calculation if it's fallible (e.g. if it queries an external API).

This way extensions that are able to do so (e.g. AshGraphql) can expose partial results alongside failures instead of just returning nil which doesn't convey the idea of a (possibly temporary) error.

@rbino rbino added enhancement New feature or request needs review labels Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advanced enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants