Created
June 18, 2020 22:22
-
-
Save maniish-jaiin/4a1ffd9a48c174b41968465cbff1a0d6 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
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