Skip to main content
The fieldsFromApi method transforms raw API responses into the format defined by your collection’s fieldsSchema. This method is called automatically when retrieving records from the external API.

Implementation Examples

File: fields-from-api.map.yml

JavaScript Implementation

File: fields-from-api.js

Input

Return Value

The method should return an object matching the collection’s fieldsSchema.

Example