#Can PayloadCMS accept OrbitDB instead of MongoDB?

5 messages · Page 1 of 1 (latest)

tame pivot
#

I am building an app that will be deployed on IPFS. I will be using OrbitDB for some other database functions and wanted to know if PayloadCMS could accept my OrbitDB as its backend so that then I can pull information into PayloadCMS from my other collections in OrbitDB.

echo tendonBOT
kind pivot
tame pivot
#

Where can I find docs for building a db adapter?

kind pivot
# tame pivot 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

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