I’m doing some basic authorization and I want users to be able to access projects they are assigned to (i.e. are in project.users), but I also want users with is_super=true to be able to access all projects and they may not be specifically assigned to them (i.e. super users may not be in project.users).
I’d like to be able to add to that query to get all projects if is_super=true for $user . As far as I can tell, this isn’t possible because there may be no relationship between the project and the super user. I can’t seem to figure out how, and I’m not sure if it’s supported, to store either a single user, or their is_super status in a variable that could then be used in my data query, to do something like this:
In a GraphDB all is possible until we prove otherwise.
I can help you, but a sample of your structure would help a lot. Otherwise, I may end up creating an example structure that is not the same as yours and my answer would be useless.
Not exactly. It is in the upsert block part (in mutations topic) but is not in the Language part. That’s something we need to add. But needs further testing to make a good doc for it.