Skip to content

Commit

Permalink
docs: m2oFields replaced with linkedFields
Browse files Browse the repository at this point in the history
  • Loading branch information
adelinn committed Feb 15, 2024
1 parent ae51d6c commit fb14587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/schema-sync/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 }
Expand Down

0 comments on commit fb14587

Please sign in to comment.