Blueprint select field query

#1

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 }}"
#2
        type: select
        options: query
        query:
          fetch: users.filterBy("role", "teacher")
          text: "{{ user.firstname }} {{ user.lastname }}"
          value: "{{ user.id }}"

options with the s!

1 Like