Skip to content

ProjectPermission ​

NodePermission to grant specific permissions to a set of Projects.

graphql
type ProjectPermission implements BaseNode, BasePermission, Named, NamedNode, Node {
  allUsers: Boolean!
  description: String!
  entries: [ProjectPermissionEntry!]!
  hasPermission(
    permission: AllPermissionEntry
  ): Boolean!
  id: ID!
  name: String!
  nodesWithPermission(
    after: String
    before: String
    filter: ProjectFilterInput
    first: Int
    last: Int
    orderBy: [ProjectOrder!]
    skip: Int
  ): ProjectConnection!
  users(
    after: String
    before: String
    filter: GropiusUserFilterInput
    first: Int
    last: Int
    orderBy: [GropiusUserOrder!]
    skip: Int
  ): GropiusUserConnection!
}

Fields ​

ProjectPermission.allUsers ● Boolean! non-null scalar ​

If, the permission is granted to all users. Use with caution.

ProjectPermission.description ● String! non-null scalar ​

The description of this entity.

ProjectPermission.entries ● [ProjectPermissionEntry!]! non-null enum ​

All permissions this Permission grants

ProjectPermission.hasPermission ● Boolean! non-null scalar ​

Checks if the current user has a specific permission on this Node

ProjectPermission.hasPermission.permission ● AllPermissionEntry enum ​

The permission to check for

ProjectPermission.id ● ID! non-null scalar ​

The unique id of this node

ProjectPermission.name ● String! non-null scalar ​

The name of this entity.

ProjectPermission.nodesWithPermission ● ProjectConnection! non-null object ​

Nodes on which the Permission is granted.

ProjectPermission.nodesWithPermission.after ● String scalar ​

Get only items after the cursor

ProjectPermission.nodesWithPermission.before ● String scalar ​

Get only items before the cursor

ProjectPermission.nodesWithPermission.filter ● ProjectFilterInput input ​

Filter for specific items in the connection

ProjectPermission.nodesWithPermission.first ● Int scalar ​

Get the first n items. Must not be used if before is specified

ProjectPermission.nodesWithPermission.last ● Int scalar ​

Get the last n items. Must not be used if after is specified

ProjectPermission.nodesWithPermission.orderBy ● [ProjectOrder!] list input ​

Order in which the items are sorted

ProjectPermission.nodesWithPermission.skip ● Int scalar ​

Skips n items. First or last MUST be specified, is otherwise ignored

ProjectPermission.users ● GropiusUserConnection! non-null object ​

GropiusUsers granted this Permission

ProjectPermission.users.after ● String scalar ​

Get only items after the cursor

ProjectPermission.users.before ● String scalar ​

Get only items before the cursor

ProjectPermission.users.filter ● GropiusUserFilterInput input ​

Filter for specific items in the connection

ProjectPermission.users.first ● Int scalar ​

Get the first n items. Must not be used if before is specified

ProjectPermission.users.last ● Int scalar ​

Get the last n items. Must not be used if after is specified

ProjectPermission.users.orderBy ● [GropiusUserOrder!] list input ​

Order in which the items are sorted

ProjectPermission.users.skip ● Int scalar ​

Skips n items. First or last MUST be specified, is otherwise ignored

Interfaces ​

BaseNode interface ​

Shared extensions to the node type.

BasePermission interface ​

Named interface ​

Entity with a name and a description.

NamedNode interface ​

Node with a name and description

Node interface ​

Base class of all nodes

Returned By ​

searchProjectPermissions query

Member Of ​

CreateProjectPermissionPayload object ● ProjectPermissionConnection object ● ProjectPermissionEdge object ● UpdateProjectPermissionPayload object

Implemented By ​

TrackablePermission union

Released under the MIT License.