How to get and record ID of document from one collection when you add a document in another collection?

Hello!

Use Go + MongoDB + Martini.

When you add a document to a Collection 1 using a form, you need to be able to select a document from the Collection 2 (select or what kind of search form).

At the moment, the save handler:

https://play.golang.org/p/taCYS-NYkDL

Thank you!
March 19th 20 at 08:45
1 answer
March 19th 20 at 08:47
Solution
Switched to PostgreSQL.)

Find more questions by tags GoMongoDB