javascript - How to check all collections in Mongo database to find field name exists in which collection -


i have list of field names in file "field_name_list.txt". want know field exists in collection in mongo database using java script or mapreduce job or mongo code.

let me give example

field_name_list.txt

firstname  lastname address zip  

collection in database:

personal_data adress  

i want output below:

fieldname      collection_name   firstname      personal_data  lastname       personal_data  address        address  zipcode        address 


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -