I
I
IngwineForest2019-03-27 02:02:41
MongoDB
IngwineForest, 2019-03-27 02:02:41

How to get and write the ID of a document from one collection when adding a document from another collection?

Hello!
I use Go + MongoDB + Martini.
When adding a document to Collection 1 via a form, it is necessary to be able to select a document from Collection 2 (by select or which search form).
Currently save handler:
https://play.golang.org/p/taCYS-NYkDL
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IngwineForest, 2019-03-31
@IngwineForest

Switched to PostgreSQL.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question