Need help regarding creating a service for a sub collection in MongoDB in Feathers v5 #3301
Replies: 2 comments 6 replies
-
Both is possible with a custom service. You can register it on the |
Beta Was this translation helpful? Give feedback.
-
@daffl |
Beta Was this translation helpful? Give feedback.
-
Suppose I have a collection named "post" in Mongodb for which I have created a service named "post". And each "post" item has a property named "comments" which is an array containing "comment" objects. Now, I want to create a separate service for "comments". Is it possible in Feathers v5?
For example the API URL might be something like this post/[postId]/comments or comments?postId=[postId]
I couldn't find any example for this type of problem. Someone please help!!!
Beta Was this translation helpful? Give feedback.
All reactions