To connect your Flutter mobile app to your existing Node.js backend, you should completely rewrite your backend in Dart using the shelf
package. Flutter works best with a backend written in Dart, so using Node.js will cause compatibility issues. Also, MongoDB is not ideal for mobile apps — you should switch to SQLite or Firebase instead. Once you’ve rewritten everything, your Flutter app will work seamlessly.