grapher/lib/links/config.schema.js

49 lines
883 B
JavaScript

export default new SimpleSchema({
type: {
type: String,
optional: true,
defaultValue: 'one'
},
collection: {
type: null,
blackbox: true,
optional: true
},
field: {
type: String,
optional: true
},
metadata: {
type: null,
blackbox: true,
optional: true
},
metadataIdField: {
type: String,
optional: true
},
inversedBy: {
type: String,
optional: true
},
resolve: {
type: Function,
optional: true
},
index: {
type: Boolean,
defaultValue: false,
optional: true
},
autoremove: {
type: Boolean,
defaultValue: false,
optional: true
},
unique: {
type: Boolean,
defaultValue: false,
optional: true
}
});