Happily, the compact is now endorsed by the UN General Assembly, and well respected human rights and development agencies including Amnesty International and Oxfam.
Only a small number of countries, including Australia, the US, Hungary and Poland, have refused to endorse the compact. The first nation on that list is known for holding asylum seekers and refugees on prison islands described by the UN as amounting to torture, and the second is currently keeping asylum seeker and migrant children in cages.
Hungary has gone as far as to criminalise those who help migrants and refugees. So, New Zealand appears firmly on the right side of history on this one, united with the vast majority of our global community.
It was perplexing to note the strong knee-jerk response against New Zealand's engagement emanating from the National Party this past month. The Opposition went from vague fear-mongering against immigration to spreading very specific misinformation.
The suggestion was that this agreement would mean the United Nations would be able to set New Zealand's immigration policy. Given the agreement specifically reaffirms the international law relating to nationhood and sovereignty and is in fact non-binding, it was a callous campaign in line with the worst of populist rhetoric spread by Brexit's
"Leave" campaigners and the Trump Administration.
It was a credit to both that the Foreign Minister and the public held fast to legal truths about the compact and kept an eye on the real issues underlying our decision to join it.
It is important to note the compact is not focused on facilitating migration as a solution in and of itself at all. In fact, it marks a meaningful recognition by the global community that addressing unsustainable rates of migration means addressing its causes.
That means if migration is to be stabilised, governments must also address global economic inequality and insecurity, war, natural disaster, and environmental degradation.
This is a commitment to keep talking to one another, to strengthen the increasingly threatened rules-based global order, and to stand for human rights in the face of the cruelty that is made possible in their absence. I congratulate the minister and every world leader championing this historic collaboration.
* Golriz Ghahraman is a Green MP.