Adding calculated fields to Ecto Schema - virtual field or?

For a GraphQL endpoint, it was easy enough to add in the field in the resolver…