Doesn't Heroku allow apps access other ports than 80 (default port)

Whole day I struggled for deployment on Heroku. It’s a node based application that uses postgraphile for graphql query to AWS RDS PostgreSQL.

Deploy on Heroku was successfully done. DB was successfully migrated via Flyway.

And also I can see the web pages on the url generated by Heroku. But the issue is I can’t get any response for graphql query. It sends a request to postgraphile process which binds on port 5000 by default as you know. So the query url is like this.

https://appname.herokuapp.com:5000/graphql

But it doesn’t respond at all. What would be an alternative to go around this? Or Is there any solution on Heroku yet?

Any idea would be appreciated so much