When trying to return a query constraint for the createdAt attribute, I get the following error.
Access control function:
read: () => {
return ({
createdAt: {
greater_than: new Date(new Date().getTime() - 1000 * 60 * 60)
}
})
},
Error:
{
"name": "QueryError",
"message": "The following path cannot be queried: createdAt",
"data": [
{
"path": "createdAt"
}
]
}
Is this expected behaviour?
Do not think so, upgraded from 1.6.28 to 1.7.2 and started seeing the same thing :/
Same applies to
updatedAt
property
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.