#Can PayloadCMS accept OrbitDB instead of MongoDB?
5 messages · Page 1 of 1 (latest)
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:
We likely won't build an official adapter for that anytime soon as it's very niche, but you could definitely build your own database adapter for OrbitDB!
Where can I find docs for building a db adapter?
There are no docs about building your own db adapter, but you can check out how the existing db adapters do it. Here's the postgres adapter as an example: https://github.com/payloadcms/payload/blob/beta/packages/db-postgres/src/index.ts#L73
So for your own db adapter, you'd have to provide a function for all the relevant operations like find, findOne, create, etc