I'm attempting to insert an API response into my mongo db, but it doesn't save the individual fields.
Input here
PlayersList.insert(Meteor.http.get("API CALL HERE"));
Here is the response from the call:
{"hnub": {
"id": 21098134,
"name": "Hnub",
"profileIconId": 20,
"revisionDate": 1428613578000,
"summonerLevel": 30
}}
Is there a simple way to do this cleanly saving all the fields?
PlayersList.insert(Meteor.http.get("API CALL HERE")["hnub"]);?