I'm using lighthouse for graphql on top of my laravel application. I know how to define types. But how can I use the model accessor in the type definition of schema? For example, i have type use like this
type User {
id: ID!
name: String
}
But I don't have a name
column in the database table but I have a name accessor in my eloquent model which I want to use in this case instead of weird column name. Is there any way I can use the model accessor?