Hey @HK420 I think the issue is your query over the array ‘characters’. The Mongo docs say that your query characters : [{CharacterID: CharID}] will be interpreted literally, the elements in the document including their order must match your query, you’re getting null because your document has > 1 elements and the elements are also not the same shape, i think. It might be easier to achieve what you want to do by filtering the result of the following query in your callback:
Hey @HK420, i suppose its a little difficult to debug this without knowing your schema, but what were you expecting? By db do you mean collection or document? its odd that findOne is returning you entire db, should return just one document of the CharData collection.
Ok now, if anyone else can help. When I do this, I can’t edit the actual data ;-; is there any way I can do this in a way where I can edit the data aswell?