repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/games/delete_game.rb | app/graphql/mutations/games/delete_game.rb | class Mutations::Games::DeleteGame < Mutations::BaseMutation
description "Delete a game. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :game_id, ID, required: true, description: 'The ID of the game to delete.'
field :deleted, Boolean, null: true, description: "Whet... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/games/create_game.rb | app/graphql/mutations/games/create_game.rb | class Mutations::Games::CreateGame < Mutations::BaseMutation
description "Create a new game. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :name, String, required: true, description: 'The name of the game.'
argument :wikidata_id, ID, required: false, description: 'T... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/games/remove_game_cover.rb | app/graphql/mutations/games/remove_game_cover.rb | class Mutations::Games::RemoveGameCover < Mutations::BaseMutation
description "Remove the cover from a game. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :game_id, ID, required: true, description: "ID of game to remove cover from."
field :game, Types::GameType, nu... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/games/update_game.rb | app/graphql/mutations/games/update_game.rb | class Mutations::Games::UpdateGame < Mutations::BaseMutation
description "Update an existing game. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :game_id, ID, required: true, description: 'The ID of the game record.'
argument :name, String, required: false, descript... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/companies/delete_company.rb | app/graphql/mutations/companies/delete_company.rb | class Mutations::Companies::DeleteCompany < Mutations::BaseMutation
description "Delete a game company. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :company_id, ID, required: true, description: 'The ID of the company to delete.'
field :deleted, Boolean, null: tru... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/companies/create_company.rb | app/graphql/mutations/companies/create_company.rb | class Mutations::Companies::CreateCompany < Mutations::BaseMutation
description "Create a new game company. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :name, String, required: true, description: 'The name of the company.'
argument :wikidata_id, ID, required: true... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/companies/update_company.rb | app/graphql/mutations/companies/update_company.rb | class Mutations::Companies::UpdateCompany < Mutations::BaseMutation
description "Update an existing game company. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :company_id, ID, required: true, description: 'The ID of the company record.'
argument :name, String, requ... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/users/delete_user.rb | app/graphql/mutations/users/delete_user.rb | class Mutations::Users::DeleteUser < Mutations::BaseMutation
description "Delete a user. **Only available to users deleting their own accounts using a first-party OAuth Application.**"
argument :user_id, ID, required: true, description: "ID of user to delete."
field :deleted, Boolean, null: false, description: ... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/users/remove_user_avatar.rb | app/graphql/mutations/users/remove_user_avatar.rb | class Mutations::Users::RemoveUserAvatar < Mutations::BaseMutation
description "Remove the avatar from a user. **Only available when using a first-party OAuth application.**"
argument :user_id, ID, required: true, description: "ID of user to remove avatar from."
field :user, Types::UserType, null: false, descri... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/users/follow_user.rb | app/graphql/mutations/users/follow_user.rb | class Mutations::Users::FollowUser < Mutations::BaseMutation
description "Follow a user."
argument :user_id, ID, required: true, description: "ID of user to follow."
field :user, Types::UserType, null: true, description: "The user being followed."
def resolve(user_id:)
user = User.find(user_id)
rela... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/users/import_steam_library.rb | app/graphql/mutations/users/import_steam_library.rb | class Mutations::Users::ImportSteamLibrary < Mutations::BaseMutation
description "Import's the Steam library of the user. **Only available to users importing their own Steam library when using a first-party OAuth application.**"
argument :user_id, ID, required: true, description: "ID of user who's Steam library we... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/users/reset_user_library.rb | app/graphql/mutations/users/reset_user_library.rb | class Mutations::Users::ResetUserLibrary < Mutations::BaseMutation
description "Reset a user's game library. This will remove the user's entire game library from the database. **Only available to users resetting their own libraries using a first-party OAuth Application.**"
argument :user_id, ID, required: true, de... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/users/ban_user.rb | app/graphql/mutations/users/ban_user.rb | class Mutations::Users::BanUser < Mutations::BaseMutation
description "Ban a user. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :user_id, ID, required: true, description: "ID of user to ban."
field :user, Types::UserType, null: true, description: "The user that ha... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/users/unfollow_user.rb | app/graphql/mutations/users/unfollow_user.rb | class Mutations::Users::UnfollowUser < Mutations::BaseMutation
description "Unfollow a user."
argument :user_id, ID, required: true, description: "ID of user to unfollow."
field :user, Types::UserType, null: true, description: "The user being unfollowed."
def resolve(user_id:)
user = User.find(user_id)
... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/users/update_user_role.rb | app/graphql/mutations/users/update_user_role.rb | class Mutations::Users::UpdateUserRole < Mutations::BaseMutation
description "Update a user's role. **Only available to admins using a first-party OAuth Application.**"
argument :user_id, ID, required: true, description: "ID of user to update the role of."
argument :role, Types::Enums::UserRoleType, required: tr... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/users/unban_user.rb | app/graphql/mutations/users/unban_user.rb | class Mutations::Users::UnbanUser < Mutations::BaseMutation
description "Unban a user. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :user_id, ID, required: true, description: "ID of user to unban."
field :user, Types::UserType, null: true, description: "The user t... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/users/connect_steam.rb | app/graphql/mutations/users/connect_steam.rb | class Mutations::Users::ConnectSteam < Mutations::BaseMutation
description "Connect a Steam account for a user. **Only available to users connecting their own Steam account when using a first-party OAuth application.**"
argument :user_id, ID, required: true, description: 'ID of the User that we want to connect thi... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/users/disconnect_steam.rb | app/graphql/mutations/users/disconnect_steam.rb | class Mutations::Users::DisconnectSteam < Mutations::BaseMutation
description "Disconnect a user's Steam account. **Only available to users disconnecting their own Steam account when using a first-party OAuth application.**"
argument :user_id, ID, required: true, description: 'The ID of the User that we want to di... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/series/delete_series.rb | app/graphql/mutations/series/delete_series.rb | class Mutations::Series::DeleteSeries < Mutations::BaseMutation
description "Delete a game series. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :series_id, ID, required: true, description: 'The ID of the series to delete.'
field :deleted, Boolean, null: true, desc... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/series/update_series.rb | app/graphql/mutations/series/update_series.rb | class Mutations::Series::UpdateSeries < Mutations::BaseMutation
description "Update an existing game series. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :series_id, ID, required: true, description: 'The ID of the series record.'
argument :name, String, required: f... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/series/create_series.rb | app/graphql/mutations/series/create_series.rb | class Mutations::Series::CreateSeries < Mutations::BaseMutation
description "Create a new game series. **Only available to moderators and admins using a first-party OAuth Application.**"
argument :name, String, required: true, description: 'The name of the series.'
argument :wikidata_id, ID, required: true, desc... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/search_result_interface.rb | app/graphql/types/search_result_interface.rb | module Types
module SearchResultInterface
include Types::BaseInterface
description 'Search results returned by global search.'
field :id, ID, null: false, description: 'The ID of the SearchResult record, probably not very useful most of the time.'
field :content, String, null: false, description: 'T... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/wikidata_blocklist_entry_type.rb | app/graphql/types/wikidata_blocklist_entry_type.rb | module Types
class WikidataBlocklistEntryType < Types::BaseObject
description <<~MARKDOWN
Entries in the Wikidata Blocklist, for blocking the creation of games
with a given Wikidata ID. Mainly used for things we don't want to track,
such as DLC or things that aren't _really_ games but are declar... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/platform_type.rb | app/graphql/types/platform_type.rb | module Types
class PlatformType < Types::BaseObject
description "Video game platforms, usually consoles or PC operating systems."
field :id, ID, null: false, description: "ID of the platform."
field :name, String, null: false, description: "Name of the platform."
field :wikidata_id, Integer, null: tr... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/base_argument.rb | app/graphql/types/base_argument.rb | module Types
class BaseArgument < GraphQL::Schema::Argument
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/base_interface.rb | app/graphql/types/base_interface.rb | module Types
module BaseInterface
include GraphQL::Schema::Interface
connection_type_class(Types::BaseConnectionObject)
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/favorite_game_type.rb | app/graphql/types/favorite_game_type.rb | module Types
class FavoriteGameType < Types::BaseObject
description "This represents a game that has been favorited by a user."
field :id, ID, null: false, description: "The ID of the FavoriteGame record."
field :created_at, GraphQL::Types::ISO8601DateTime, null: false, description: "When this game was f... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/relationship_type.rb | app/graphql/types/relationship_type.rb | module Types
class RelationshipType < Types::BaseObject
description "This represents the relationship between two users, where one user is following another."
field :id, ID, null: false, description: "ID of the relationship."
field :created_at, GraphQL::Types::ISO8601DateTime, null: false, description: "... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/store_type.rb | app/graphql/types/store_type.rb | module Types
class StoreType < Types::BaseObject
description "Stores where video games are sold, e.g. Steam or the Epic Games Store"
field :id, ID, null: false, description: "ID of the store."
field :name, String, null: false, description: "Name of the store."
field :created_at, GraphQL::Types::ISO86... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/query_type.rb | app/graphql/types/query_type.rb | module Types
class QueryType < Types::BaseObject
description "Queries are GraphQL requests that can be used to request data from vglist's database."
field :game, resolver: Resolvers::GameResolvers::GameResolver
field :games, resolver: Resolvers::GameResolvers::ListResolver
field :game_search, resolve... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/game_purchase_type.rb | app/graphql/types/game_purchase_type.rb | module Types
class GamePurchaseType < Types::BaseObject
description "This represents a game that a user has in their library. It includes data like the user's rating for the game, comments, hours played, etc."
field :id, ID, null: false, description: "ID of the game purchase."
field :comments, String, nu... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/engine_type.rb | app/graphql/types/engine_type.rb | module Types
class EngineType < Types::BaseObject
description "Video game engines"
field :id, ID, null: false, description: "ID of the engine."
field :name, String, null: false, description: "Name of the engine."
field :wikidata_id, Integer, null: true, description: 'Wikidata identifier'
field :c... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/event_type.rb | app/graphql/types/event_type.rb | module Types
class EventType < Types::BaseObject
description "Represents events in the Activity Feed."
field :id, ID, null: false, description: "The ID of the event, keep in mind that Events - unlike all other models - use UUIDs."
field :event_category, Enums::EventCategoryType, null: false, description:... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/game_type.rb | app/graphql/types/game_type.rb | module Types
class GameType < Types::BaseObject
description "Video games"
field :id, ID, null: false, description: "ID of the game."
field :name, String, null: false, description: "Name of the game."
field :release_date, GraphQL::Types::ISO8601Date, null: true, description: "The release date of the g... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/base_input_object.rb | app/graphql/types/base_input_object.rb | module Types
class BaseInputObject < GraphQL::Schema::InputObject
argument_class Types::BaseArgument
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/eventable_union.rb | app/graphql/types/eventable_union.rb | class Types::EventableUnion < Types::BaseUnion
description "Objects which may be the subject of events."
possible_types Types::UserType,
Types::GamePurchaseType,
Types::RelationshipType,
Types::FavoriteGameType
def self.resolve_type(object, _context)
case ob... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/base_field.rb | app/graphql/types/base_field.rb | module Types
class BaseField < GraphQL::Schema::Field
argument_class Types::BaseArgument
def resolve_field(obj, args, ctx)
resolve(obj, args, ctx)
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/page_info_type.rb | app/graphql/types/page_info_type.rb | class Types::PageInfoType < GraphQL::Types::Relay::PageInfo
field :page_size, Integer, null: false, description: "The max page size for a given set of nodes."
def page_size
object.first || object.last || object.default_page_size || object.max_page_size || VideoGameListSchema.default_page_size || VideoGameListS... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/grouped_unmatched_game_type.rb | app/graphql/types/grouped_unmatched_game_type.rb | module Types
class GroupedUnmatchedGameType < Types::BaseObject
description "This represents a game that was imported from a third party service by a user, but which couldn't be matched to a game in the vglist database."
field :external_service_name, Enums::UnmatchedGameExternalServiceType, null: false, desc... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/base_enum.rb | app/graphql/types/base_enum.rb | module Types
class BaseEnum < GraphQL::Schema::Enum
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/genre_type.rb | app/graphql/types/genre_type.rb | module Types
class GenreType < Types::BaseObject
description "Video game genres"
field :id, ID, null: false, description: "ID of the genre."
field :name, String, null: false, description: "Name of the genre."
field :wikidata_id, Integer, null: true, description: "Identifier for Wikidata."
field :... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/site_statistic_type.rb | app/graphql/types/site_statistic_type.rb | module Types
class SiteStatisticType < Types::BaseObject
description <<~MARKDOWN
Historical site statistics for vglist. Most of these values cannot be
`null`, but some may be if you go back far enough. Make sure to handle
`null` where necessary.
MARKDOWN
implements Types::SiteStatisticI... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/site_statistic_item.rb | app/graphql/types/site_statistic_item.rb | module Types::SiteStatisticItem
include Types::BaseInterface
description "Site statistics attributes"
field :users, Integer, null: false, description: "The number of Users at this point in time."
field :games, Integer, null: false, description: "The number of Games at this point in time."
field :platforms, ... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/mutation_type.rb | app/graphql/types/mutation_type.rb | module Types
class MutationType < Types::BaseObject
description "Mutations are GraphQL requests that can be used to create, update, or delete records on vglist."
# Game mutations
field :create_game, mutation: Mutations::Games::CreateGame
field :update_game, mutation: Mutations::Games::UpdateGame
... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/base_connection_object.rb | app/graphql/types/base_connection_object.rb | class Types::BaseConnectionObject < GraphQL::Types::Relay::BaseConnection
field :page_info, Types::PageInfoType, null: false, description: "Information to aid in pagination."
field :total_count, Integer, null: false, description: "The total number of records returned by this query."
node_nullable(false)
def t... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/base_union.rb | app/graphql/types/base_union.rb | module Types
class BaseUnion < GraphQL::Schema::Union
connection_type_class(Types::BaseConnectionObject)
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/base_object.rb | app/graphql/types/base_object.rb | module Types
class BaseObject < GraphQL::Schema::Object
include Pundit::Authorization
connection_type_class(Types::BaseConnectionObject)
# User needs to be logged in to get anything from the API.
def self.authorized?(_object, context)
raise GraphQL::ExecutionError, "You must be logged in to us... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/company_type.rb | app/graphql/types/company_type.rb | module Types
class CompanyType < Types::BaseObject
description "Video game developers and publishers"
field :id, ID, null: false, description: "ID of the company."
field :name, String, null: false, description: 'Name of the company.'
field :wikidata_id, Integer, null: true, description: 'Wikidata ide... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/search_result_union.rb | app/graphql/types/search_result_union.rb | class Types::SearchResultUnion < Types::BaseUnion
description "The various possible types of search result."
possible_types Types::SearchResults::UserSearchResultType,
Types::SearchResults::GameSearchResultType,
Types::SearchResults::GenreSearchResultType,
Types::S... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/series_type.rb | app/graphql/types/series_type.rb | module Types
class SeriesType < Types::BaseObject
description "Video game series'"
field :id, ID, null: false, description: "ID of the series."
field :name, String, null: false, description: "Name of the series."
field :wikidata_id, Integer, null: true, description: "Identifier for Wikidata."
fie... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/user_type.rb | app/graphql/types/user_type.rb | module Types
class UserType < Types::BaseObject
description "User accounts on vglist"
field :id, ID, null: false, description: "ID of the user."
field :username, String, null: false, description: "Username of the user."
field :bio, String, null: true, description: "User profile description, aka 'bio'... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/live_site_statistic_type.rb | app/graphql/types/live_site_statistic_type.rb | module Types
class LiveSiteStatisticType < Types::BaseObject
description <<~MARKDOWN
Live-updated site statistics for the vglist database.
MARKDOWN
implements Types::SiteStatisticItem
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/steam_blocklist_entry_type.rb | app/graphql/types/steam_blocklist_entry_type.rb | module Types
class SteamBlocklistEntryType < Types::BaseObject
description <<~MARKDOWN
Entries in the Steam Blocklist, for blocking the creation of games with a
given Steam App ID. Mainly used for things we don't want to track, such
as DLC or non-game Steam applications.
MARKDOWN
field ... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/basic_site_statistic_type.rb | app/graphql/types/basic_site_statistic_type.rb | module Types
class BasicSiteStatisticType < Types::BaseObject
description "Basic site statistics."
field :games, Integer, null: false, description: "The current number of Games."
field :platforms, Integer, null: false, description: "The current number of Platforms."
field :series, Integer, null: fals... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/base_scalar.rb | app/graphql/types/base_scalar.rb | module Types
class BaseScalar < GraphQL::Schema::Scalar
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/search_results/series_search_result_type.rb | app/graphql/types/search_results/series_search_result_type.rb | module Types
module SearchResults
class SeriesSearchResultType < Types::BaseObject
implements Types::SearchResultInterface
description "A series search result."
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/search_results/game_search_result_type.rb | app/graphql/types/search_results/game_search_result_type.rb | module Types
module SearchResults
class GameSearchResultType < Types::BaseObject
implements Types::SearchResultInterface
description "A game search result."
field :cover_url, String, null: true, description: "URL for the game's cover image. `null` means the game has no associated cover." do
... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/search_results/user_search_result_type.rb | app/graphql/types/search_results/user_search_result_type.rb | module Types
module SearchResults
class UserSearchResultType < Types::BaseObject
implements Types::SearchResultInterface
description "A user search result."
field :avatar_url, String, null: true, description: "URL for the user's avatar image. `null` means the user has the default avatar." do
... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/search_results/company_search_result_type.rb | app/graphql/types/search_results/company_search_result_type.rb | module Types
module SearchResults
class CompanySearchResultType < Types::BaseObject
implements Types::SearchResultInterface
description "A company search result."
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/search_results/engine_search_result_type.rb | app/graphql/types/search_results/engine_search_result_type.rb | module Types
module SearchResults
class EngineSearchResultType < Types::BaseObject
implements Types::SearchResultInterface
description "An engine search result."
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/search_results/genre_search_result_type.rb | app/graphql/types/search_results/genre_search_result_type.rb | module Types
module SearchResults
class GenreSearchResultType < Types::BaseObject
implements Types::SearchResultInterface
description "A genre search result."
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/search_results/platform_search_result_type.rb | app/graphql/types/search_results/platform_search_result_type.rb | module Types
module SearchResults
class PlatformSearchResultType < Types::BaseObject
implements Types::SearchResultInterface
description "A platform search result."
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/searchable_enum.rb | app/graphql/types/enums/searchable_enum.rb | module Types::Enums
class SearchableEnum < Types::BaseEnum
description "The types of records that can be returned as a `SearchResult`."
value "COMPANY", value: 'Company', description: 'Self-explanatory.'
value "ENGINE", value: 'Engine', description: 'Self-explanatory.'
value "GAME", value: 'Game', de... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/user_sort_type.rb | app/graphql/types/enums/user_sort_type.rb | module Types::Enums
class UserSortType < Types::BaseEnum
description "Options for sorting users."
value 'MOST_GAMES', value: 'most_games', description: 'Sorted by the number of games in the given user\'s library.'
value 'MOST_FOLLOWERS', value: 'most_followers', description: 'Sorted by the number of user... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/user_privacy_type.rb | app/graphql/types/enums/user_privacy_type.rb | module Types::Enums
class UserPrivacyType < Types::BaseEnum
description "An enum describing the privacy level of a given user. Most users will be `PUBLIC_ACCOUNT`."
value "PUBLIC_ACCOUNT", value: 'public_account', description: "User has a publicly-visible profile."
value "PRIVATE_ACCOUNT", value: 'privat... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/game_cover_size_type.rb | app/graphql/types/enums/game_cover_size_type.rb | module Types::Enums
class GameCoverSizeType < Types::BaseEnum
description <<~DESCRIPTION.squish
The size of the game cover. Game covers are downsized to fit
within the specified dimensions while retaining the original aspect
ratio. Will only resize the image if it\'s larger than the specified
... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/game_sort_type.rb | app/graphql/types/enums/game_sort_type.rb | module Types::Enums
class GameSortType < Types::BaseEnum
description "Options for sorting games."
value "NEWEST", value: 'newest', description: 'Sorted with newest game records first.'
value "OLDEST", value: 'oldest', description: 'Sorted with newest game records last.'
value "RECENTLY_UPDATED", valu... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/unmatched_game_external_service_type.rb | app/graphql/types/enums/unmatched_game_external_service_type.rb | module Types::Enums
class UnmatchedGameExternalServiceType < Types::BaseEnum
description "External services that an Unmatched Game can come from, currently only Steam."
value "STEAM", value: 'Steam', description: 'Imported from the Steam store.'
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/event_category_type.rb | app/graphql/types/enums/event_category_type.rb | module Types::Enums
class EventCategoryType < Types::BaseEnum
description "Category types for events in the Activity Feed."
value "ADD_TO_LIBRARY", value: 'add_to_library', description: "Event for a user adding a game to their library."
value "CHANGE_COMPLETION_STATUS", value: 'change_completion_status',... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/user_avatar_size_type.rb | app/graphql/types/enums/user_avatar_size_type.rb | module Types::Enums
class UserAvatarSizeType < Types::BaseEnum
description "The size of the user avatar."
User::AVATAR_SIZES.each do |key, (width, height)|
value key.to_s.upcase, value: key, description: "User avatar image with a width of #{width} and height of #{height}."
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/user_role_type.rb | app/graphql/types/enums/user_role_type.rb | module Types::Enums
class UserRoleType < Types::BaseEnum
description "Roles that a user can have, these define permissions levels. Most users will be `MEMBER`."
value "MEMBER", value: 'member', description: "User is a regular user."
value "MODERATOR", value: 'moderator', description: "User has some heigh... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/sort_direction_type.rb | app/graphql/types/enums/sort_direction_type.rb | module Types::Enums
class SortDirectionType < Types::BaseEnum
description "Direction for sorting a list of records."
value 'DESC', value: 'desc', description: 'Sorted descending (larger values first).'
value 'ASC', value: 'asc', description: 'Sorted ascending (smaller values first).'
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/game_purchase_completion_status_type.rb | app/graphql/types/enums/game_purchase_completion_status_type.rb | module Types::Enums
class GamePurchaseCompletionStatusType < Types::BaseEnum
description "Completion Status options for game purchases (games in a user's library)."
value "UNPLAYED", value: 'unplayed', description: "The game is unplayed."
value "IN_PROGRESS", value: 'in_progress', description: "The game ... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/types/enums/activity_feed_type.rb | app/graphql/types/enums/activity_feed_type.rb | module Types::Enums
class ActivityFeedType < Types::BaseEnum
description "Options for filtering events in the activity feed."
value "GLOBAL", value: 'global', description: "Events from everyone."
value "FOLLOWING", value: 'following', description: "Events from the current user and anyone they follow."
... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/activity_resolver.rb | app/graphql/resolvers/activity_resolver.rb | module Resolvers
class ActivityResolver < Resolvers::BaseResolver
type Types::EventType.connection_type, null: true
description "View recent activity."
argument :feed_type, Types::Enums::ActivityFeedType, required: false
def resolve(feed_type: 'following')
case feed_type
when 'global'
... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/base_resolver.rb | app/graphql/resolvers/base_resolver.rb | module Resolvers
class BaseResolver < GraphQL::Schema::Resolver
argument_class Types::BaseArgument
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/game_purchase_resolver.rb | app/graphql/resolvers/game_purchase_resolver.rb | module Resolvers
class GamePurchaseResolver < Resolvers::BaseResolver
type Types::GamePurchaseType, null: true
description "Find a game purchase by ID."
argument :id, ID, required: true
def resolve(id:)
GamePurchase.find(id)
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/global_search_resolver.rb | app/graphql/resolvers/global_search_resolver.rb | module Resolvers
class GlobalSearchResolver < Resolvers::BaseResolver
type Types::SearchResultUnion.connection_type, null: false
description <<~MARKDOWN
Search for records matching a given string. Returns Companies, Engines,
Games, Genres, Platforms, Series', and Users.
Please always debou... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/company_resolvers/company_resolver.rb | app/graphql/resolvers/company_resolvers/company_resolver.rb | module Resolvers
module CompanyResolvers
class CompanyResolver < Resolvers::BaseResolver
type Types::CompanyType, null: true
description "Find a company by ID."
argument :id, ID, required: true
def resolve(id:)
Company.find(id)
end
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/company_resolvers/search_resolver.rb | app/graphql/resolvers/company_resolvers/search_resolver.rb | module Resolvers
module CompanyResolvers
class SearchResolver < Resolvers::BaseResolver
type Types::CompanyType.connection_type, null: true
description "Find a company by searching based on its name."
argument :query, String, required: true, description: "Name to search by."
def resolve... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/company_resolvers/list_resolver.rb | app/graphql/resolvers/company_resolvers/list_resolver.rb | module Resolvers
module CompanyResolvers
class ListResolver < Resolvers::BaseResolver
type Types::CompanyType.connection_type, null: true
description "List all companies."
def resolve
Company.all
end
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/store_resolvers/search_resolver.rb | app/graphql/resolvers/store_resolvers/search_resolver.rb | module Resolvers
module StoreResolvers
class SearchResolver < Resolvers::BaseResolver
type Types::StoreType.connection_type, null: true
description "Find a store by searching based on its name."
argument :query, String, required: true, description: "Name to search by."
def resolve(query... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/store_resolvers/store_resolver.rb | app/graphql/resolvers/store_resolvers/store_resolver.rb | module Resolvers
module StoreResolvers
class StoreResolver < Resolvers::BaseResolver
type Types::StoreType, null: true
description "Find a store by ID."
argument :id, ID, required: true
def resolve(id:)
Store.find(id)
end
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/store_resolvers/list_resolver.rb | app/graphql/resolvers/store_resolvers/list_resolver.rb | module Resolvers
module StoreResolvers
class ListResolver < Resolvers::BaseResolver
type Types::StoreType.connection_type, null: true
description "List all stores."
def resolve
Store.all
end
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/admin_resolvers/steam_blocklist_resolver.rb | app/graphql/resolvers/admin_resolvers/steam_blocklist_resolver.rb | module Resolvers::AdminResolvers
class SteamBlocklistResolver < Resolvers::BaseResolver
type Types::SteamBlocklistEntryType.connection_type, null: true
description "List all steam blocklist entries. **Only available to admins.**"
def resolve
SteamBlocklist.all
end
def authorized?
ra... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/admin_resolvers/wikidata_blocklist_resolver.rb | app/graphql/resolvers/admin_resolvers/wikidata_blocklist_resolver.rb | module Resolvers::AdminResolvers
class WikidataBlocklistResolver < Resolvers::BaseResolver
type Types::WikidataBlocklistEntryType.connection_type, null: true
description "List all Wikidata blocklist entries. **Only available to admins.**"
def resolve
WikidataBlocklist.all
end
def authoriz... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/admin_resolvers/grouped_unmatched_games_resolver.rb | app/graphql/resolvers/admin_resolvers/grouped_unmatched_games_resolver.rb | module Resolvers::AdminResolvers
class GroupedUnmatchedGamesResolver < Resolvers::BaseResolver
type Types::GroupedUnmatchedGameType.connection_type, null: true
description "List all unmatched game entries."
def resolve
Views::GroupedUnmatchedGame.all
end
# Allow anyone to access this, the... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/genre_resolvers/genre_resolver.rb | app/graphql/resolvers/genre_resolvers/genre_resolver.rb | module Resolvers
module GenreResolvers
class GenreResolver < Resolvers::BaseResolver
type Types::GenreType, null: true
description "Find a genre by ID."
argument :id, ID, required: true
def resolve(id:)
Genre.find(id)
end
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/genre_resolvers/search_resolver.rb | app/graphql/resolvers/genre_resolvers/search_resolver.rb | module Resolvers
module GenreResolvers
class SearchResolver < Resolvers::BaseResolver
type Types::GenreType.connection_type, null: true
description "Find a genre by searching based on its name."
argument :query, String, required: true, description: "Name to search by."
def resolve(query... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/genre_resolvers/list_resolver.rb | app/graphql/resolvers/genre_resolvers/list_resolver.rb | module Resolvers
module GenreResolvers
class ListResolver < Resolvers::BaseResolver
type Types::GenreType.connection_type, null: true
description "List all genres."
def resolve
Genre.all
end
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/site_statistic_resolvers/basic_resolver.rb | app/graphql/resolvers/site_statistic_resolvers/basic_resolver.rb | module Resolvers
module SiteStatisticResolvers
class BasicResolver < Resolvers::BaseResolver
type Types::BasicSiteStatisticType, null: false
description <<~MARKDOWN
Current, basic site statistics for the home page. These values are
cached for 30 minutes and so won't necessarily repres... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/site_statistic_resolvers/live_resolver.rb | app/graphql/resolvers/site_statistic_resolvers/live_resolver.rb | module Resolvers
module SiteStatisticResolvers
class LiveResolver < Resolvers::BaseResolver
type Types::LiveSiteStatisticType, null: false
description "Current statistics for all records on the site, for use on the admin dashboard. **Only available to admins.**"
def resolve
{
... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/site_statistic_resolvers/list_resolver.rb | app/graphql/resolvers/site_statistic_resolvers/list_resolver.rb | module Resolvers
module SiteStatisticResolvers
class ListResolver < Resolvers::BaseResolver
type Types::SiteStatisticType.connection_type, null: true
description "List all statistics. **Only available to admins.**"
argument :sort_direction, Types::Enums::SortDirectionType, required: false, des... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/platform_resolvers/platform_resolver.rb | app/graphql/resolvers/platform_resolvers/platform_resolver.rb | module Resolvers
module PlatformResolvers
class PlatformResolver < Resolvers::BaseResolver
type Types::PlatformType, null: true
description "Find a platform by ID."
argument :id, ID, required: true
def resolve(id:)
Platform.find(id)
end
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/platform_resolvers/search_resolver.rb | app/graphql/resolvers/platform_resolvers/search_resolver.rb | module Resolvers
module PlatformResolvers
class SearchResolver < Resolvers::BaseResolver
type Types::PlatformType.connection_type, null: true
description "Find a platform by searching based on its name."
argument :query, String, required: true, description: "Name to search by."
def reso... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/platform_resolvers/list_resolver.rb | app/graphql/resolvers/platform_resolvers/list_resolver.rb | module Resolvers
module PlatformResolvers
class ListResolver < Resolvers::BaseResolver
type Types::PlatformType.connection_type, null: true
description "List all platforms."
def resolve
Platform.all
end
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/series_resolvers/series_resolver.rb | app/graphql/resolvers/series_resolvers/series_resolver.rb | module Resolvers
module SeriesResolvers
class SeriesResolver < Resolvers::BaseResolver
type Types::SeriesType, null: true
description "Find a series by ID."
argument :id, ID, required: true
def resolve(id:)
Series.find(id)
end
end
end
end
| ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/series_resolvers/search_resolver.rb | app/graphql/resolvers/series_resolvers/search_resolver.rb | module Resolvers
module SeriesResolvers
class SearchResolver < Resolvers::BaseResolver
type Types::SeriesType.connection_type, null: true
description "Find a series by searching based on its name."
argument :query, String, required: true, description: "Name to search by."
def resolve(qu... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/series_resolvers/list_resolver.rb | app/graphql/resolvers/series_resolvers/list_resolver.rb | module Resolvers
module SeriesResolvers
class ListResolver < Resolvers::BaseResolver
type Types::SeriesType.connection_type, null: true
description "List all series'. This is different from the other list queries because series is the plural of series. :("
def resolve
Series.all
... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
connorshea/vglist | https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/resolvers/user_resolvers/search_resolver.rb | app/graphql/resolvers/user_resolvers/search_resolver.rb | module Resolvers
module UserResolvers
class SearchResolver < Resolvers::BaseResolver
type Types::UserType.connection_type, null: true
description "Find a user by searching based on its username."
argument :query, String, required: true, description: "Username to search by."
def resolve(... | ruby | MIT | 7ff3d360e861a3e224565a7ad941228f5fd462e2 | 2026-01-04T17:32:52.765079Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.