Skip to content

Hide model fields from gql schema if they are never allowed to be seen by the abilities #1

@m1212e

Description

@m1212e
user model {
  id string
  secret string
}

scenario 1:
ability1: allows access to all fields for logged in users
ability2: allows access to the id for everyone
=> all fields should be in the schema

scenario 2:
ability1: allows access to id for logged in users
ability2: allows access to the id for everyone
=> secret should not be in the schema since it can never be seen anyway

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions