i have a code in sql in a java envirnmen which is looks like TXT='121';
SELECT NAME FORM TAB WHERE ID=TXT;
TXT is define as a '121' which is VARCHAR2 datatype can i convert this query into MongoDB where i can the ID from another variable thnks in advance can i do this like
db.Collection_name.find({'NAME':1},{'ID':'.....values.....'});
can it is possible ?