Blueprint select field query

Whats wrong with this blueprint code? It does not work…

type: select
option: query
query: users.filterBy("role", "teacher")
  text: "{{ user.firstname }} {{ user.lastname }}"
  value: "{{ user.id }}"
        type: select
        options: query
        query:
          fetch: users.filterBy("role", "teacher")
          text: "{{ user.firstname }} {{ user.lastname }}"
          value: "{{ user.id }}"

options with the s!

1 Like