Skip to content

Instantly share code, notes, and snippets.

@maniish-jaiin
Created June 18, 2020 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maniish-jaiin/4a1ffd9a48c174b41968465cbff1a0d6 to your computer and use it in GitHub Desktop.
Save maniish-jaiin/4a1ffd9a48c174b41968465cbff1a0d6 to your computer and use it in GitHub Desktop.
from graphene import ObjectType, Stringclass ExampleQuery(ObjectType):
hello = String()
def resolve_hello(self, info):
return "Hello"
class RootQuery(ExampleQuery, ObjectType):
pass
schema = Schema(query=RootQuery)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment