Sha256: a8cb0dd8379cfadff4ec159e6f2ffd991e00474500b2b3be32da98381170128d

Contents?: true

Size: 230 Bytes

Versions: 26

Compression:

Stored size: 230 Bytes

Contents

# frozen_string_literal: true

module Resolvers
  class UserShow < 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

26 entries across 26 versions & 1 rubygems

Version Path
graphql_devise-2.0.0 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-1.4.0 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-1.3.0 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-1.2.0 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-1.1.1 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-1.1.0 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-1.0.1 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-1.0.0 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.18.2 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.18.1 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.18.0 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.17.1 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.17.0 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.16.0 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.15.0 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.14.3 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.14.2 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.14.1 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.14.0 spec/dummy/app/graphql/resolvers/user_show.rb
graphql_devise-0.13.6 spec/dummy/app/graphql/resolvers/user_show.rb