You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like the error is because of secretKey field's access on read. Replacing the read: ({ req: { context } }) => context.operation === 'create', with read: () => true, seems to fix the issue.
Also, it's specific to the database adapter. This bug appeared after changing the database adapter from MongoDB to Postgres (on a personal project).
Describe the Bug
Seems like the error is because of
secretKey
field's access on read. Replacing theread: ({ req: { context } }) => context.operation === 'create',
withread: () => true,
seems to fix the issue.Also, it's specific to the database adapter. This bug appeared after changing the database adapter from MongoDB to Postgres (on a personal project).
Link to the code that reproduces this issue
https://github.com/GeorgeHulpoi/payload-query-path-validation-bug
Reproduction Steps
col1
collection and create a documment./api/col1/{id}
Which area(s) are affected? (Select all that apply)
db-postgres, area: core
Environment Info
The text was updated successfully, but these errors were encountered: