To charge a Nintendo Switch without a dock, you have to make use of a USB-C type cable. Plugging the USB-C cable with a power outlet and then to your Switch will do the job. However, you should only use a Nintendo power cable to make sure your Switch lives longer as other cables can destroy your Switch easily.