2017-11-26 17:03:43 +02:00
|
|
|
export const CacheSchema = new SimpleSchema({
|
|
|
|
field: {type: String},
|
|
|
|
body: {
|
|
|
|
type: Object,
|
|
|
|
blackbox: true,
|
|
|
|
},
|
|
|
|
bypassSchema: {
|
|
|
|
type: Boolean,
|
|
|
|
defaultValue: false,
|
|
|
|
optional: true,
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2016-09-14 16:04:08 +03:00
|
|
|
export default new SimpleSchema({
|
|
|
|
type: {
|
|
|
|
type: String,
|
|
|
|
optional: true,
|
|
|
|
defaultValue: 'one'
|
|
|
|
},
|
|
|
|
collection: {
|
2017-03-02 10:43:47 +02:00
|
|
|
type: null,
|
2016-09-14 16:04:08 +03:00
|
|
|
blackbox: true,
|
|
|
|
optional: true
|
|
|
|
},
|
|
|
|
field: {
|
|
|
|
type: String,
|
|
|
|
optional: true
|
|
|
|
},
|
|
|
|
metadata: {
|
2017-11-23 21:03:39 +02:00
|
|
|
type: Boolean,
|
2017-03-03 10:00:30 +02:00
|
|
|
optional: true
|
|
|
|
},
|
2016-09-14 16:04:08 +03:00
|
|
|
inversedBy: {
|
|
|
|
type: String,
|
|
|
|
optional: true
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
type: Function,
|
|
|
|
optional: true
|
2016-09-16 19:22:12 +03:00
|
|
|
},
|
|
|
|
index: {
|
|
|
|
type: Boolean,
|
|
|
|
defaultValue: false,
|
|
|
|
optional: true
|
|
|
|
},
|
|
|
|
autoremove: {
|
|
|
|
type: Boolean,
|
|
|
|
defaultValue: false,
|
|
|
|
optional: true
|
2016-09-22 13:46:27 +03:00
|
|
|
},
|
|
|
|
unique: {
|
|
|
|
type: Boolean,
|
|
|
|
defaultValue: false,
|
|
|
|
optional: true
|
2017-11-26 17:03:43 +02:00
|
|
|
},
|
|
|
|
cache: {
|
|
|
|
type: CacheSchema,
|
|
|
|
optional: true,
|
2016-09-14 16:04:08 +03:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|