Move, rename and remove fields
Moving fields
Traditional Syntax
# Assuming the following structure:
# User { id, firstName, lastName, addressId }
# Address { id, streetName, streetNumber, city, countryId }
# Country { id, name }
@create_agent.customize_collection('user') do |collection|
collection.import_field('city', { path: 'address:city', readonly: true })
.import_field('country', { path: 'address:country:name', readonly: true })
endDSL Syntax
Renaming and removing fields and relations
Traditional Syntax
DSL Syntax
Last updated