Skip to content

Instantly share code, notes, and snippets.

@alexanderhupfer
Created April 5, 2021 19:37
Show Gist options
  • Save alexanderhupfer/039c6a8125f9f0675230996ecd3c7f5b to your computer and use it in GitHub Desktop.
Save alexanderhupfer/039c6a8125f9f0675230996ecd3c7f5b to your computer and use it in GitHub Desktop.
import graphene
class Configuration(graphene.ObjectType):
#ID! definition to be ommitted, generated by node interface
enabled = graphene.Boolean()
value = graphene.Int()
class Meta:
interfaces = (graphene.relay.Node, )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment