0

In Volt: say I have a bunch of people with (nonunique) job_title fields, is there a way to query for a list of all existing job titles?

e.g. if I 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 would use store.??? to get ['boss', 'lieutenant', 'underling'], or similar? Is there a way to do this? Tried something like in this answer, but got undefined method 'group'.

Community
  • 1
  • 1
neurodynamic
  • 4,294
  • 3
  • 28
  • 39

0 Answers0