Skip to content

Can I customize the visibility of parts of the schema? #405

@yaquawa

Description

@yaquawa

Hi!
I want to know can I customize the visibility of parts of the schema with graphql-php? just like how the graphql-ruby deals with the visibility of schema.

I have a project with 3 types of account (admin,client,user), currently, all of the schema mixed together, I want to separate the schema by the account type.

with this we can:

  1. skip unnecessary parsing
  2. skip unnecessary authorization logic
  3. better security (especially, in terms of introspection)

currently, to achieve 2 and 3 I have to write the check logic manually, which can be a big pain when the project get bigger and bigger.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions