Vulcan/packages/vulcan-cloudinary/lib/custom_fields.js
2017-07-08 11:36:27 +09:00

28 lines
469 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'],
}
},
{
fieldName: 'cloudinaryUrls.$',
fieldSchema: {
type: Object,
blackbox: true,
optional: true
}
}
]);