diff --git a/examples/request_swapi.py b/examples/request_swapi.py index 409dd2a9d03ac15f8403a1989ed947df9606ada1..f0a99a1f87c10c64d2d66e63121099186cf5955d 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,