Skip to content

Instantly share code, notes, and snippets.

@jgraham909
Created July 15, 2013 22:12
Show Gist options
  • Save jgraham909/6003975 to your computer and use it in GitHub Desktop.
Save jgraham909/6003975 to your computer and use it in GitHub Desktop.
bloggo update article.Tags field from string to array
db.articles.find().snapshot().forEach( function(x) {
x.Tags = x.Tags.split(',');
db.articles.save(x);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment