thompsonsj / gatbsy-source-payload-cms

MIT License
5 stars 0 forks source link

refactor(formatentity)!: node transform fn runs on whole data #84

Closed thompsonsj closed 7 months ago

thompsonsj commented 7 months ago

Breaking change if using the nodeTransform option.

nodeTransform is now a function that accepts the data from Payload as an argument and expects this data to be returned with any adjustments. An example is given in the docs where the locale field is intercepted and copied to another field name before it gets overwritten be reserved properties.

Documentation relevant to this change. has been re-organised and improved.