...
In the code we store dates as:
timestamp: new Date().toISOString();
In the data model:
timestamp:
{
type: 'string',
format: 'date-time' }, without saying format 'string'
}
...
In the code we store dates as:
timestamp: new Date().toISOString();
In the data model:
timestamp:
{
type: 'string',
format: 'date-time' }, without saying format 'string'
}