Class: LMSGraphQL::Resolvers::Canvas::ListAllCourse
- Inherits:
-
CanvasBaseResolver
- Object
- GraphQL::Schema::Resolver
- CanvasBaseResolver
- LMSGraphQL::Resolvers::Canvas::ListAllCourse
- Defined in:
- lib/lms_graphql/resolvers/canvas/list_all_courses.rb
Instance Method Summary collapse
Instance Method Details
#resolve(search: nil, public_only: nil, open_enrollment_only: nil, get_all: false) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/lms_graphql/resolvers/canvas/list_all_courses.rb', line 11 def resolve(search: nil, public_only: nil, open_enrollment_only: nil, get_all: false) result = context[:canvas_api].call("LIST_ALL_COURSES").proxy( "LIST_ALL_COURSES", { "search": search, "public_only": public_only, "open_enrollment_only": open_enrollment_only }, nil, get_all, ) get_all ? result : result.parsed_response end |