I want to move my website away from using the www subdomain. I am using Squarespace which will provide automatic 301 redirects for all pages on the www subdomain to the non-www. I have a sitemap submitted in Google Search Console.
When I make the switch, will Google's index understand that the site was moved from www to non-www? Will it display search results as non-www and send visitors to the correct non-www site? I don't want any duplicate indexing across www and non-www.