Sorry if this has been asked already but is there ...
# apollo-kotlin
j
Sorry if this has been asked already but is there way to rename/alias a property in query/result?
s
Yup! You should be able to do
newName: schemaName
on any property. https://www.apollographql.com/docs/kotlin/advanced/using-aliases#using-aliases-to-avoid-name-clashes
`emergencyContact { # With an alias, the generated model will be named
EmergencyAddress
emergencyAddress: homeAddress { street } }`
j
perfect, thanks