So my issue was fixed by RTFM and paying attention to details from docs.
I used 2 queries inside single QUERY string receiving data for single row in ModelA and all data from ModelB. These are exposed as variables (there is a note in tutorial and docs I think, can’t link this at the moment). Then it was a matter of setting the defaultValue
on SelectField
- this might have been trickier that it should as I am using CUIDs for ID fields… not sure… I had to cast ID .toString()
to finally get it working. Added answer here as well:
I think it would be a good thing to add some documentation (reference?) on how to use the built in SelectField
as there is part of docs touching on the topic.