Skip to content

Get object members w/ graphql (project only)

Anthony Shull requested to merge feature/object-members into develop

Closes https://gitlab.com/JOGL/JOGL/-/issues/985

I created a graphql query to get the users associated with an object by type and id. Create a second user and give them the role of admin on the first project.

> FactoryBot.create(:confirmed_user)
> User.second.add_role(:admin, Project.first)

Now you can query and you'll get a user with the association of owner and one with the association of admin.

I only did project for now. We can do other objects when we create their types, etc.

Edited by LucaH

Merge request reports