#Cannot query collection with _status

2 messages · Page 1 of 1 (latest)

scenic locust
#

The following paths cannot be queried: _status, _status

Using a lightly modified version of example/draft-preview where I replaced pages with posts I am getting a 400 error when visiting the live posts API endpoint as a public user. The posts return as expected when logged in.

Even stranger, this error persists even after replacing the publishedOrLoggedIn function with read: ()=>true. Posts in the collection include the _status key in each instance.

What am I missing here? Repo: https://github.com/ballermatic/backend

GitHub

The best way to build a modern backend + admin UI. No black magic, all TypeScript, and fully open-source, Payload is both an app framework and a headless CMS. - payloadcms/payload

GitHub

The best way to build a modern backend + admin UI. No black magic, all TypeScript, and fully open-source, Payload is both an app framework and a headless CMS. - payloadcms/payload

GitHub

Contribute to ballermatic/backend development by creating an account on GitHub.

chrome quailBOT