mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
22 lines
403 B
JavaScript
22 lines
403 B
JavaScript
import Posts from "meteor/nova:posts";
|
|
|
|
Posts.addField([
|
|
{
|
|
fieldName: 'cloudinaryId',
|
|
fieldSchema: {
|
|
type: String,
|
|
optional: true,
|
|
viewableBy: ['guests'],
|
|
}
|
|
},
|
|
{
|
|
fieldName: 'cloudinaryUrls',
|
|
fieldSchema: {
|
|
type: [Object],
|
|
blackbox: true,
|
|
optional: true,
|
|
viewableBy: ['guests'],
|
|
resolveAs: 'cloudinaryUrls: [JSON]',
|
|
}
|
|
}
|
|
]);
|