Skip to content

Instantly share code, notes, and snippets.

@imlucas
Created November 9, 2016 15:32
Show Gist options
  • Save imlucas/3dba57840f83d5290db74be6e5e991f2 to your computer and use it in GitHub Desktop.
Save imlucas/3dba57840f83d5290db74be6e5e991f2 to your computer and use it in GitHub Desktop.

centralize listCollections calls:

  • doc validation uses dataService.listCollections but should be collection-model.get() to get collection details
  • lots of listCollections code in instance-model. move to collection-model.list()
  • dataService has a lot of code that should be in models
  • add type, options.viewOn, options.pipeline and info.readOnly to collection-model
  • make a mongodb-view-model class that extends mongodb-collection-model?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment