Skip to content

Instantly share code, notes, and snippets.

@damianrr
Created May 7, 2018 14:18
Show Gist options
  • Save damianrr/bc2f58b0253686524c3409da27c91562 to your computer and use it in GitHub Desktop.
Save damianrr/bc2f58b0253686524c3409da27c91562 to your computer and use it in GitHub Desktop.
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