-
Hi first of all, thank you for your work! Is reference custom fields possible? For example:
For the custom validations:
or would it be better to move it in saving and deleting callbacks? Again, thanks for the awesome package! 🎉 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I am also wondering how to customize how reference fields are stored. For example, we de-normalize some of our data between documents and collections, so ideally we'd like to maintain that and just add a new For example, if we were tracking the // Without "reference"
owner: {
id: 'abcdefg',
name: 'John Doe',
age: 25,
favoriteColor: 'blue',
}
// With "reference"
owner: {
id: 'abcdefg',
name: 'John Doe',
age: 25,
favoriteColor: 'blue',
ref: '/users/abcdefg'; // New "reference" field used by CMS interface
} Would it make sense to define the |
Beta Was this translation helpful? Give feedback.
-
Managed to get it working by creating CustomField using useDataSource hook to fetch other collection. |
Beta Was this translation helpful? Give feedback.
Managed to get it working by creating CustomField using useDataSource hook to fetch other collection.