If you are using apollo-server or apollo-server-express, this can help you generate quickly your resolver with basic setting