I'm working on an app, which would be mobile-based. I've options to build middleware using NodeJS and Java. Basically the middleware will only call database and expose APIs for the mobile app to make CRUD operations. Which technology would be good? If any other technology other than NodeJS/Java, please suggest.
Since you said that your middleware will be accessing DB and expose API, you can go with Node.js. It will make your development fast and easy. Suppose in future you will add some business logic you can choose Java with Spring Boot or Python with Flask / Django. NOTE: Language or framework doesn't matter. Choose based on your programming knowledge.