Closed imcvampire closed 4 years ago
Hi @imcvampire,
Can you add
guard
toResolver
I'm sorry, what do you mean? Can you provide more information and examples?
P.S. You can find some code examples in the readme file
Here is what I do for now
field :my_field, resolver: Resolvers::MyFieldResolver do
guard -> (_, _, ctx) { ctx[:current_user] }
end
class MyFieldResolver < GraphQL::Schema::Resolver
type :id, ID, null: false
end
What I want to do
field :my_field, resolver: Resolvers::MyFieldResolver
class MyFieldResolver < GraphQL::Schema::Resolver
type :id, ID, null: false
guard -> (_, _, ctx) { ctx[:current_user] }
end
And, I don't see any example about using with Resolver
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Hi @exAspArk!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
@imcvampire @exAspArk any answer / solution to this? I have the same question.
Hi,
Can you add
guard
toResolver
Thanks for your open source contributions!