To manage the redirection from your old domain (mydomain.de) to your new domain (mydomain.com), you should set up 301 redirects. This type of redirect is a permanent redirect that tells search engines and users that the page has moved to a new location.
You can read from the following Shopify help articles: