From afc71f342adbb093ceda77de858c67e8d9a7ea0c Mon Sep 17 00:00:00 2001 From: vtexier <vit@free.fr> Date: Sun, 19 May 2019 11:27:02 +0200 Subject: [PATCH] issue #59 WIP: improve example --- examples/request_swapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/request_swapi.py b/examples/request_swapi.py index 409dd2a9..f0a99a1f 100644 --- a/examples/request_swapi.py +++ b/examples/request_swapi.py @@ -12,8 +12,6 @@ SWAPI_ENDPOINT = "BMAS swapi.graph.cool 443" GRAPHQL_GET_SCHEMA_QUERY_FILEPATH = "../duniterpy/api/gva/get_schema_query.graphql" -GRAPHQL_SCHEMA_FILEPATH = "/tmp/duniterpy_example_swapi_schema.graphql" - ################################################ @@ -25,9 +23,11 @@ async def main(): with open(os.path.join(os.path.dirname(__file__), GRAPHQL_GET_SCHEMA_QUERY_FILEPATH), 'r') as fd: query = fd.read() + print("\nGet swapi schema with introspection query:") response = await client.query(query) print(response) + print("\nallFilms query:") query = """query { allFilms { title, -- GitLab