Adding virtual attribute to model

Welcome @darron1217 :wave:,

Virtual fields are currently not possible by default, but there has been some discussion going on how to implement it. Checkout this RFC.

For now you could create a custom query in your GraphQL shema(s) to implement some custom logic. These docs could help you out:

Also the afterFind Lifecycle hook could help you out realizing the ‘calculated’ logic on student fetches.

Hope this helps :+1: