Repository navigation
Multiple data sources #12374
Replies: 4 comments 2 replies
|
It is possible to upload JSON files in the upload field. The S3 storage plugin would handle the upload to S3 |
|
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. |
|
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 |
|
I have the same need for something like this. We have an existing database for an ECommerce site that has complex filtering logic for the products, built into our own API's. The product catalogue and variants together makes up around 100,000 unique products and the catalogue is synced via an automated process. It's not feasible to simply add all the products to payload manually nor is the client API flexible enough to handle the filter logic. |
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) :
?
All reactions