mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
29 lines
512 B
JavaScript
29 lines
512 B
JavaScript
import Posts from "meteor/vulcan:posts";
|
|
|
|
Posts.addField([
|
|
{
|
|
fieldName: 'cloudinaryId',
|
|
fieldSchema: {
|
|
type: String,
|
|
optional: true,
|
|
viewableBy: ['guests'],
|
|
}
|
|
},
|
|
{
|
|
fieldName: 'cloudinaryUrls',
|
|
fieldSchema: {
|
|
type: Array,
|
|
optional: true,
|
|
viewableBy: ['guests'],
|
|
resolveAs: 'cloudinaryUrls: [JSON]',
|
|
}
|
|
},
|
|
{
|
|
fieldName: 'cloudinaryUrls.$',
|
|
fieldSchema: {
|
|
type: Object,
|
|
blackbox: true,
|
|
optional: true
|
|
}
|
|
}
|
|
]);
|