Created
May 27, 2019 11:50
-
-
Save jenny-codes/bebc204b01a81271a1c41c772950e36c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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