Multiple data sources #12374
Replies: 3 comments 2 replies
-
It is possible to upload JSON files in the upload field. The S3 storage plugin would handle the upload to S3 |
Beta Was this translation helpful? Give feedback.
-
Sorry, I probably didn't phrase my question clearly enough. I am aware that I can upload JSON (and other arbitrary) files, but I am asking something different. In the Config we specify a data source, e.g.:
I am asking whether it is possible to specify multiple data sources depending on the collection, and it's all handled programatically (like when using one data source). I have a feeling that this is not possible based on my understanding of Payload, but I'd like to know for sure. I'd also like to know whether this is something that could be supported in future. |
Beta Was this translation helpful? Give feedback.
-
I've been wanting to work with external document data in Payload for a while. My use case involves integrating a third-party service: fetching external data into the admin UI, editing it, and syncing changes back, all without storing anything in Payload’s local DB. Right now, this is partially doable using hooks, as @matthijs166 mentioned — but only in the edit view for single documents. The list view (table of all documents) doesn't support this, since collection hooks only apply to single-document operations. Additionally, the I’ve opened a related feature request, #12702, proposing either support for external data via new hooks or by exposing the necessary props in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to have multiple data sources in Payload CMS?
By this I mean (for example) :
?
Beta Was this translation helpful? Give feedback.
All reactions