This commit is contained in:
Tyrel Souza 2023-12-18 15:36:42 -05:00
commit 867c5164d3
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
4 changed files with 28645 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
venv/

22
main.py Normal file
View File

@ -0,0 +1,22 @@
from graphene import Schema, ObjectType, String
class Query(ObjectType):
hello = String(name=String(default_value="world"))
def resolve_hello(self, info, name):
return "Hello " + name
schema = Schema(query=Query)
gql = """
{
hello(name: "ghasdf")
}
"""
if __name__ == "__main__":
res = schema.execute(gql)
print(res)

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
graphene==3.2.2

28621
tags Normal file

File diff suppressed because one or more lines are too long