The idea is to run a generic GraphQL server configured with a schema file/URL and proxy any request to a specific function provided by OpenFaaS.
brew install faas-cli
docker swarm init
yarn deploy:local
faas-cli build
faas-cli deploy
yarn start
Goto http://localhost:4000/ and send a query to the GraphQL server:
query {
greet(name: "OpenFaaS")
}
Goto http://127.0.0.1:8080/ui/ to see the OpenFaaS dashboard.