graphql-guard icon indicating copy to clipboard operation
graphql-guard copied to clipboard

Simple authorization gem for GraphQL :lock:

Results 10 graphql-guard issues
Sort by recently updated
recently updated
newest added

If using `guard ->(obj, args, ctx) { some_method }` inside a base type class, and then inheriting from that class you cannot specify overrides per sub class or even per...

Hello, Deprecation warnings starting graphql-1.13.1: ``` Legacy `.to_graphql` objects are deprecated and will be removed in GraphQL-Ruby 2.0. Remove `.to_graphql` to use a class-based definition instead. Called on # from:...

When handling the errors on field which is defined in an Interface, `field.owner` returns the interface module, instead of the real owner (the subclass of GraphQL::Schema::Object). Probably it should be...

## Apparent bug It seems like arguments of mutations that use `loads` to automatically load the types from the database don't get loaded unless they are nested in another type....

This is a question as well as a suggestion. I'm combining graphql-ruby and graphql-guard with Doorkeeper+Sorcery to handle my authentication. In my `graphql_controller.rb` I have: ``` def current_user token =...

**Versions** graphql 1.11.2 graphql-guard 2.0.0 **Example Code** ```ruby module Types class PostType < Types::BaseObject field :id, ID, null: false field :name, String, null: true field :masked_or_guarded_field, String, null: true, mask:...

Was on 1.2.2, graphql 1.8.10 and just upgraded to 2.0 and graphql 1.11.5 and see that: ```rb rescue_from GraphQL::Guard::NotAuthorizedError do |e| # some handling end ``` Is not hit when...

Was on 1.2.2, graphql 1.8.10 and just upgraded to 2.0 and graphql 1.11.5 and see that previously: ```rb field :something_amaaaaazing, mutation: Mutations::Foo do guard -> (_, args, ctx) do #...

I'm getting the `Not authorized to access: Xxxxx.id (GraphQL::Guard::NotAuthorizedError)` error in my logs, but are often not sure which record it's talking about, and it's making it a real pain...