def METHOD_NAME(endpoint):
    """
    Reloads Hasura metadata. Helpful if the Postgres schema has changed.
    """
    response = None
    try:
        click.secho("\nReloading Hasura metadata...")
        endpoint = os.path.join(endpoint, "v1", "query")
        response = requests.post(
            endpoint,
            json={"type": "reload_metadata", "args": {}},
        )
        response.raise_for_status()
        click.secho("\nFinished!", fg="green")
    except Exception as exc:
        click.secho("\nCould not reload metadata!", bg="red", bold=True)
        if response is not None:
            raise click.ClickException(response.content)
        raise click.ClickException(exc)