This is the function I have been using create a post in Hashnode via there GraphQL APIs whIntroducing Hashnode GraphQL API - Public Beta
def post_to_hashnode(