Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenny-codes/bebc204b01a81271a1c41c772950e36c to your computer and use it in GitHub Desktop.
Save jenny-codes/bebc204b01a81271a1c41c772950e36c to your computer and use it in GitHub Desktop.
module Resolvers
class RecommendedItems < GraphQL::Schema::Resolver
# Return type and arguments can be specified either here or in the field arguments.
# Uncomment the following if you want to put them here.
#
# type [CategoryType], null: false
#
# argument :order_by, Types::ItemOrder, required: false
# argument :category, Types::ItemCategory, required: false
# `object` and `context` are provided by default
def resolve(order_by: nil, category: nil)
# Call your application logic here
# ...
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment