Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

References/Relations to user groups #40

Open
Idered opened this issue Dec 12, 2018 · 0 comments
Open

References/Relations to user groups #40

Idered opened this issue Dec 12, 2018 · 0 comments
Labels
BACKLOG FEATURE New feature or request

Comments

@Idered
Copy link
Member

Idered commented Dec 12, 2018

Currently users class can be referenced but user groups can't. It would be cool to use them like the rest of classes

class:
  member:
    - name:  groups
       type: relation
       target: user_groups
data.member.with('groups').list()
[
  {
    "id": 1,
    "groups": [
       {
         "id": 1,
         "name": "admin",
         "label": "Admin",
         "description": "",
       }
     ] 
  }
]
@Idered Idered added FEATURE New feature or request BACKLOG labels Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BACKLOG FEATURE New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant