我有以下graphql微服务
- /graphql1 - with userList as the query - fetches the user records from nosql db
- /graphql2 - with accountList as the query - fetches the account records from sql db
- /graphql3 - with transactionList as the query - fetches the transactions records from static file
所有这3个微服务都在他们自己的docker容器上运行。
我想通过一个aws api网关托管这3个微服务
即/api
当。。。的时候
query is userlist - api should redirect the request to /graphql1
query is accountList - api should redirect the request to /graphql2
query is transactionList - api should redirect the request to /graphql3
AWS API网关可以根据方法或contexturl指向不同的端点,在这种情况下,所有graphql请求都将发布到/ api,查询为正文。因此挑战。任何帮助或指导都非常感谢。