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
federated_gateway: | |
depends_on: | |
- graphql_server_user | |
- graphql_server_photo | |
- graphql_server_review | |
image: xmorse/apollo-federation-gateway | |
ports: | |
- "4000:80" | |
environment: | |
URL_0: "http://graphql_server_user:8300" |
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
app = Flask(__name__) | |
@app.route("/", methods=["GET"]) | |
def graphql_playgroud(): | |
return PLAYGROUND_HTML, 200 | |
@app.route("/", methods=["POST"]) | |
def graphql_server(): | |
data = request.get_json() | |
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
schemaCreator = SchemaCreator() | |
schema = schemaCreator.getSchema() |
NewerOlder