Created
May 7, 2018 14:18
-
-
Save damianrr/bc2f58b0253686524c3409da27c91562 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
class Unit(graphene.ObjectType): | |
unit_id = graphene.Int() | |
class_id = graphene.Int() | |
subject_id = graphene.Int() | |
class SharedCourseOutlineEndpoint(graphene.ObjectType): | |
units = graphene.List(Unit, | |
unit_id=graphene.Int(), | |
class_id=graphene.Int(), | |
subject_id=graphene.Int()) | |
@staticmethod | |
def resolve_units(root, args, context, info): | |
import ipdb | |
ipdb.set_trace() # noqa | |
>> return Units() | |
class sharedCourseOutlineQuery(graphene.AbstractType): | |
shared_course_outline = graphene.Field(SharedCourseOutlineEndpoint) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment