Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment