So I have this code, which works: ->selectDistinct( 'sites', 'id as value, name as label' )
I want something like this: ->selectDistinct( 'sites', 'id as value, name, lastname as label' )
But everything I try gives me invalid JSON responses back.
So I have this code, which works: ->selectDistinct( 'sites', 'id as value, name as label' )
I want something like this: ->selectDistinct( 'sites', 'id as value, name, lastname as label' )
But everything I try gives me invalid JSON responses back.