I want to move my website away from the use of the www subdomain. I am using Squarespace, which will provide automatic 301 redirects for all pages in the www subdomain to non-www. I have a site map submitted in the Google Search Console.
When I make the change, will the Google index understand that the site went from www to not www? Will it show the results of the search as not www and send visitors to the correct site that is not www? I do not want any duplicate indexing on www and not www.