PHPackages                             fidelize/graphql-laravel-authorize-introspection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. fidelize/graphql-laravel-authorize-introspection

ActiveProject[Framework](/categories/framework)

fidelize/graphql-laravel-authorize-introspection
================================================

Authorize introspection documentarion for rebing/graphql-laravel

1.1.1(6y ago)25.7k1MITPHP

Since Dec 3Pushed 6y ago4 watchersCompare

[ Source](https://github.com/fidelize/graphql-laravel-authorize-introspection)[ Packagist](https://packagist.org/packages/fidelize/graphql-laravel-authorize-introspection)[ RSS](/packages/fidelize-graphql-laravel-authorize-introspection/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (5)Used By (0)

Authorize Introspection
=======================

[](#authorize-introspection)

[rebing/graphql-laravel](https://github.com/rebing/graphql-laravel) lists all queries, mutations and subscriptions when you perform [introspection](https://facebook.github.io/graphql/June2018/#sec-Introspection), even those queries which would not be authorized when called (due to rules in their `#authorize` method).

This extension allows us to:

- Define separate rules for calling a query and introspecting a query.
- Only list allowed queries, mutations and subscriptions in an introspection.

For example: you may want to list `updatePost` mutation for all authors with `authorizeIntrospection`, but only allow an author to edit his or her own post on calling `updatePost`. Thus:

- `authorizeIntrospection`: allows showing the documentation.
- `authorize`: allows calling it with the given arguments.

In your queries, mutations and subscriptions base classes, you may want to add:

```
