Skip to content

Provide a more concise way to write check permissions and write relationships. #38

@lubiah

Description

@lubiah

Which package does this affect?

@permify-toolkit/core

Problem / Motivation

The current approach to writing check permissions and defining relationships is overly verbose. Both this method and the main permit library follow the same cumbersome pattern. While reviewing the documentation, I noticed relationships are often written as document:2#owner@user:1—could we introduce a method that accepts such a string, parses it, and extracts the relevant fields? This would significantly simplify the process.

Proposed Solution

custom api that accepts a string and parses it and extracts the fields from it

Alternatives Considered

None

Would you like to implement this?

  • Yes, I'd like to open a PR for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions