Has anyone seen this message? I have updated to 1.7.1 and my request doesn't work anymore
/api/round-trips/62be80ce39974d8a7aaa22c1?publish=true&locale=all
I don't have API authentication enabled, maybe thats the reason?
so we released a new feature that
validatesqueries
you may be wanting to query on
_status
but are actually querying on
status
which might not exist
(the field that we inject into your config for drafts / autosave is called
_status
)
hmm, let me check
This is interesting - I'm logged-in in the yellow browser but not in incognito
queries also now respect access control
for security reasons
you should not be able to query a field if field-level access control prevents you from reading the field
this may be related
hmm, so how can I quickly add a token that can read everything so that our pages are working again? 😅
I think I have
access: {
read: () => true,
},
everywhere, but I'm double checking
aha! Found it!
Thanks @jmikrut
beautiful
I was migrating from a custom implementation to
versions
so these hard-rules are a bit unfortunate because there maybe docs that are not migrated or still have the old value
well, we don't throw any errors based on if a doc
has a value
we only will throw where query validation errors if you 1. don't have access to the field or 2. the field doesn't exist in the schema itself
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.