Closed tmpfs closed 8 years ago
Whilst the shorthand is convenient it makes the code more complex than it needs to be and will make schemas more readable by enforcing a fields property.
fields
This will mean that instead of:
{ name: {type: 'string'} }
It must be:
{ fields: { name: {type: 'string'} } }
Whilst the shorthand is convenient it makes the code more complex than it needs to be and will make schemas more readable by enforcing a
fields
property.This will mean that instead of:
It must be: