-
I have two collections. One is Product and another one is Media. As the name suggests, I want to link the Media collection with the Product collection through a relationship field in the Product collection. Even though it runs perfectly and appears on the UI but whenever I want to create a new document of Products collection I am getting an error saying - Product Collection:
Media collection:
This is my buildConfig -
Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Image type in Products should be 'upload' and not 'relationship' Fields in media should be any fields which you want to describe about the image uploaded. |
Beta Was this translation helpful? Give feedback.
-
It looks like, the issue was due to my MongoDB cluster. I deleted the collection from my db cluster and the problem was fixed! |
Beta Was this translation helpful? Give feedback.
-
I just wanted to offer a solution to this error message. I encountered this error message when switching from using
to
The first of which created an index on my collection for the filename of the |
Beta Was this translation helpful? Give feedback.
It looks like, the issue was due to my MongoDB cluster. I deleted the collection from my db cluster and the problem was fixed!