diff --git a/install/schema-sync/config.js b/install/schema-sync/config.js index 92ff59a..32c9a68 100644 --- a/install/schema-sync/config.js +++ b/install/schema-sync/config.js @@ -5,7 +5,7 @@ * collectionName: * watch: array of events to watch for changes, eg. 'posts.items', * excludeFields: (optional) array of fields to exclude from the export, - * m2oFields: (optional) array of fields to treat as many-to-one relationships for hierarchy, eg. ['parent'], + * linkedFields: (optional) array of fields to treat as many-to-one relationships for hierarchy, eg. ['parent'], * getKey: (optional) function to get the key for the item, defaults to primary key found on schema, * query: (optional) query to use when exporting the collection, valid options are: (limit=-1 | filter | sort) * prefix: (optional) prefix the exported json file with this string (useful for separating test data from production data) @@ -17,7 +17,7 @@ export const syncCustomCollections = { posts: { watch: ['posts.items'], excludeFields: ['user_created', 'user_updated'], - m2oFields: ['parent'], + linkedFields: ['parent'], query: { filter: { shared: { _eq: true }