expressa icon indicating copy to clipboard operation
expressa copied to clipboard

nested routes and relationship

Open pantchox opened this issue 6 years ago • 1 comments

Hi,

in the Admin interface how do i connected collections by relationship? for example i have POST and TAG collections, and in a post item i want to have a field/property named tags which is type array of ids that holds the ids from the TAG collection...?

thanks.

pantchox avatar Jan 07 '19 15:01 pantchox

Hi Arye, I'm still working on making something like this easy to setup. You can look at how the users model currently has a list of the roles to see how you can set something up in the meantime with listeners, see the code here https://github.com/thomas4019/expressa/blob/master/listeners_users.js#L43.

thomas4019 avatar Jan 07 '19 17:01 thomas4019