-
Hi, @azure-tools/typespec-ts `model MyCalculationOutput { @get Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The background is: The 'calculation' method returns a list of records. I want this list of records could be presented as a dictionary/map of records with the 'id' of each record used as the dictionary/map key |
Beta Was this translation helpful? Give feedback.
Key conceptually flags the fields which identify the resource, but doesn't imply any special behavior for that type within an array. You can maybe get what you want by doing: