Sha256: 0c2a121bfb5c1e8d56daa4fe1b47defddf671e87cc08809b7ea0beed47edf3fc

Contents?: true

Size: 201 Bytes

Versions: 11

Compression:

Stored size: 201 Bytes

Contents

module Resolvers
  class PublicUser < GraphQL::Schema::Resolver
    type Types::UserType, null: false

    argument :id, Int, required: true

    def resolve(id:)
      User.find(id)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
graphql_devise-0.12.3 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.12.2 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.12.1 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.12.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.11.4 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.11.3 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.11.2 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.11.1 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.11.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.10.1 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.10.0 spec/dummy/app/graphql/resolvers/public_user.rb