Overview
You can alias your target fields and relations if you don’t wish to expose database field names and relationship method names to your frontend. The below example:- Allows
name
and usesfirst_name
in the database query. - Allows
documents
and usesfiles
as the relationship method name.