#Adding Query Parameter to `payload.find` Call
13 messages ยท Page 1 of 1 (latest)
Original message from @frail forge - Moved from #general message
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
@frail forge Hmmm
To the find call on the local api?
I'm not sure how to do this via the local API find call
However..
You could create a custom endpoint on your collection, which could make the equivalent of a find operation with the additional params
try {
const req = await fetch('{cms-url}/api/{collection-slug}?param=foo')
const data = await req.json()
} catch (err) {
console.log(err)
}
Thank you @maiden sentinel for your reply. I'm aware of this option, was just hoping to find a more standard solution using the local API ๐