Hello! I am new at MongoDB and I have imported this data set to play around with:
{
"_id": {
"$oid": "64459a3906135f434f43a1d5"
},
"data": [
{
"id": 34541863,
"name": "\"A\" Cell Breeding Device",
"type": "Spell Card",
"frameType": "spell",
"desc": "During each of your Standby Phases, put 1 A-Counter on 1 face-up monster your opponent controls.",
"race": "Continuous",
"archetype": "Alien",
},
{
"id": 64163367,
"name": "\"A\" Cell Incubator",
"type": "Spell Card",
"frameType": "spell",
"desc": "Each time an A-Counter(s) is removed from play by a card effect, place 1 A-Counter on this card. When this card is destroyed, distribute the A-Counters on this card among face-up monsters.",
"race": "Continuous",
"archetype": "Alien",
{
"id": 13026402,
"name": "A-Team: Trap Disposal Unit",
"type": "Effect Monster",
"frameType": "effect",
"desc": "This effect can be used during either player's turn. When your opponent activates a Trap Card, Tribute this face-up card to negate the activation of the Trap Card and destroy it.",
"atk": 300,
"def": 400,
"level": 2,
"race": "Machine",
"attribute": "FIRE",
}, ...
I’ve tried to do the equivalent of “Select * from DB where type = “Effect Monster”” on MongoDB Compass with this:
{“data.type”: {$eq: “Effect Monster”}}
This should retrieve only rows with type: “Effect Monster”
However I keep getting all entries and seems to be ignoring the “where” clause