You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this is in an include function you can just return an array from there instead of using the collection method.
But i will check what it would take to allow a transformer to return arrays and primitive types.
@hlozancic I just made made a small change to allow a transformer to return primitive types. Would be awesome if you could check it out by installing from master (a173997) and give feedback if this satisfies your needs.
For example I have TagTransformer which should return tags as array of tag.title strings like:
tags: ['tag1', 'tag2', 'tag3' ... ]
Currently it's only possible to return array of tag objects like:
tags: [{title: 'tag1'}, {title: 'tag2'}, {title: 'tag3'} ...]
The text was updated successfully, but these errors were encountered: