Incorrect typespec for Repo query functions?

The typespec for Repo.one says the return type is Ecto.Schema.t() | nil but when you specify a field using select you get a primative back that is not an ecto schema or nil. This is the same for a few other query functions. Should they all have Ecto.Schema.t() | nil | any as the return type? Or what is the best way to handle this?

3 Likes

Sounds legit, you can create a PR for this

1 Like

Done! Thanks @hissssst :slight_smile: