Funeral prayer is not permissible among the graves
It is narrated from Anas (may Allah be pleased with him) that:
ان النبى صلى الله عليه وسلم نهى أن يصلى على الجنائز بين القبور
“The Prophet ﷺ forbade praying the funeral prayer while standing among the graves.”
Reference: Tabarani, al-Awsat: 80/1; Ibn al-Arabi in his Mu’jam: 1/235. Imam al-Haythami (may Allah have mercy on him) graded it hasan (good), al-Majma’: 36/3. Shaykh al-Albani (may Allah have mercy on him) also agreed with him. Ahkam al-Jana’iz: p. 138