mirror of
https://github.com/vale981/Vulcan
synced 2025-03-11 13:06:41 -04:00
34 lines
621 B
JavaScript
34 lines
621 B
JavaScript
![]() |
export const CloudinaryCollections = [];
|
||
|
|
||
|
export const addCustomFields = collection => {
|
||
|
|
||
|
CloudinaryCollections.push(collection);
|
||
|
|
||
|
collection.addField([
|
||
|
{
|
||
|
fieldName: 'cloudinaryId',
|
||
|
fieldSchema: {
|
||
|
type: String,
|
||
|
optional: true,
|
||
|
viewableBy: ['guests'],
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
fieldName: 'cloudinaryUrls',
|
||
|
fieldSchema: {
|
||
|
type: Array,
|
||
|
optional: true,
|
||
|
viewableBy: ['guests'],
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
fieldName: 'cloudinaryUrls.$',
|
||
|
fieldSchema: {
|
||
|
type: Object,
|
||
|
blackbox: true,
|
||
|
optional: true
|
||
|
}
|
||
|
}
|
||
|
]);
|
||
|
|
||
|
}
|