querying - Volt/mongodb query for list of unique fields? -
in volt: have bunch of people (nonunique) job_title fields, there way query list of existing job titles?
e.g. if have:
{name: 'sam', job_title: 'boss' }, {name: 'alex', job_title: 'lieutenant' }, {name: 'cal', job_title: 'underling' }, {name: 'morgan', job_title: 'underling' }, {name: 'harper', job_title: 'underling' } i use store.??? ['boss', 'lieutenant', 'underling'], or similar? there way this? tried in this answer, got undefined method 'group'.
Comments
Post a Comment