Heat the oven to 180º C / 450º F and cover a baking tray with baking paper.
In a frying pan, sauté the aubergine, onion, and garlic in a little extra virgin olive oil for 10 to 15 minutes. You can add a little water as you go if it starts to burn. Transfer the cooked veggie mix to a mixing bowl.
Roughly chop the walnuts and add them to the bowl as well.
Also add all the rest of the ingredients - except the rice flour.
Using an immersion/hand blender, blend everything into a rough consistency. You still want a good amount of texture so don’t over blend it.
Next, add rice flour as needed until you get a consistency that keeps its shape when shaped into balls. The mixture should be wet so don’t add flour until the stickiness goes away. Add just enough flour to keep it all together.
Using your hands, shape the mixture into small balls and place them on the baking tray. Bake for 25 to 30 minutes, turning them over halfway through.