I am trying to save a set of tags within a mongodb document e.g.
{ id:"104454", tags:["tag1", "tag2"] }
I am struggling to figure out how to do this with the Java Driver though. I thought I would use BasicDBList but this doesnt seem to be right.
Could someone help please?
Thanks in advance.