I want to save a document(a person's information) in mongodb, with a pdf File uploaded and added in it(CV) which means each document is related with a file. There is GridFS, i found that files are stored in two specific collections: files and chunk.
Is there any method to save document with reference file in it, or a way to map relationships between documents and stored files ?
Thank you.