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
npm run dev, login to the admin, create a few pages.
Open one page, click on the relationship field and start typing.
The field errors out. And the errors are different. Sometimes it's something like
ERROR: TypeError: Cannot destructure property 'operator' of '(0 , _sanitizeQueryValue_js__WEBPACK_IMPORTED_MODULE_3__.sanitizeQueryValue)(...)' as it is undefined.
at buildSearchParam (webpack-internal:///(rsc)/./node_modules/.pnpm/@payloadcms+db-mongodb@3.0.0-beta.22_payload@3.0.0-beta.22/node_modules/@payloadcms/db-mongodb/dist/queries/buildSearchParams.js:58:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
If I add a date field and it's set in all pages and I set it to be the defaultSort: '-date', it's:
ERROR: QueryError: The following path cannot be queried: -date
The text was updated successfully, but these errors were encountered:
How to reproduce:
pages
collection like so:npm run dev
, login to the admin, create a few pages.The field errors out. And the errors are different. Sometimes it's something like
If I add a
date
field and it's set in all pages and I set it to be thedefaultSort: '-date'
, it's:ERROR: QueryError: The following path cannot be queried: -date
The text was updated successfully, but these errors were encountered: