8000 nicer code · graphql-python/gql-next@402bf32 · GitHub
[go: up one dir, main page]

Skip to content

Commit 402bf32

Browse files
committed
nicer code
1 parent 56f55b8 commit 402bf32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/simple/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# coding: gql
22

3-
MY_QUERY = gql"""
4-
query hello_query {
3+
QUERY = gql"""
4+
query HelloQuery {
55
hello(argument: "World")
66
}
77
"""
88

99
def main():
10-
result = MY_QUERY.execute()
10+
result = QUERY.execute()
1111
print(result)
1212

1313
if __name__ == "__main__":
14-
main()
14+
main()

0 commit comments

Comments
 (0)
0