d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Mongochef Question
Add Reply New Topic New Poll
Member
Posts: 4,668
Joined: Oct 23 2015
Gold: 0.00
Feb 3 2017 05:41pm
Hey programmers,

Question: There is some concern that restaurants who ever received a grade of "C" might need inspections on a more regular basis.

my code: db.restaurants.find({"grades.grade":"C")}


The query runs fine but I get a list of all the restaurants that received a grade of A - D

Is there anyway that i get the results of the restaurants that ONLY received a grade of "C" ??

I'm still new to this program so any help would be greatly appreciated!

This post was edited by roflchopter on Feb 3 2017 06:08pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll