exAspArk / graphql-guard

Simple authorization gem for GraphQL :lock:
MIT License
471 stars 36 forks source link

Add support for Mutation #42

Closed bilby91 closed 4 years ago

bilby91 commented 4 years ago

Is there any technical limitation for not supporting the DSL on mutations ?

Something like this:

class CreateDevice < GraphQL::Schema::Mutation
  guard -> (_, _, _) { raise StandardError.new }

  argument :arg1, String, null: false

  def resolve(arg1:)
    # My logic
  end
end
ghost commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

bilby91 commented 4 years ago

/keep-alive

ghost commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

bilby91 commented 4 years ago

/keep-alive

ghost commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.