Question: can mew breed in sword and shield?
Answer: You can't do so, as Mew is in the Undiscovered Egg Group. Undiscovered Pokémon cannot breed, even when attempting to do so with a Ditto, which can otherwise let genderless Pokémon breed with it.