I've run into an issue when querying a collection I've made of Twitch JSON objects. However, the following query throws "SyntaxError: invalid syntax".
objflat = db.twitchstreams.find({'_links': [
'streams': [
{'channel':
{'game': gameName}
}
]
})
Any suggestions? I have all my fields in quotes, aside from gameName, which is a variable pulled from a config file of games for which I want data.