Preheat oven to 400 degrees F. Mist a 9-inch by 9-inch baking dish with coconut oil cooking spray and set aside.
Shred/grate sweet potatoes. Heat coconut oil in a nonstick skillet over medium heat. Once oil is hot, add sweet potatoes and cook for 5-6 minutes or until softened. Meanwhile, shred/grate the apples; add to the skillet and cook an additional 3-4 minutes; remove from heat.
In a large bowl, combine the salt, cinnamon, nutmeg, eggs, and coconut milk; whisk well. Add the sweet potato mixture and stir until combined. Fold in the raisins and walnuts; transfer to prepared baking dish.
Bake for 25 minutes or until edges being to brown and the dish is set. Remove from oven and allow to cool 10 minutes before slicing and serving.