ash-project / ash_graphql

The extension for building GraphQL APIs with Ash
https://hexdocs.pm/ash_graphql
MIT License
73 stars 49 forks source link

improvement: return a map from decode_relay_id/1 #107

Closed rbino closed 9 months ago

rbino commented 9 months ago

Slight API improvement over #106.

This makes it more ergonomic to partially match on the return value (and it also makes it more explicit by explicitly labeling the two parts).

Also add tests for relay id encoding/decoding.

Contributor checklist

zachdaniel commented 9 months ago

🚀 Thank you for your contribution! 🚀