grapher/lib/links/config.schema.js

62 lines
1.1 KiB
JavaScript
Raw Normal View History

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: {
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,
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
}
});