Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 276 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 276 Bytes

union types

Union types are valuable when you have a field that can return one of several types.

  • errorsAsData shows how to implement the "errors as data" pattern. This is useful when you want to return a field that can return either a value or an error.