I am new to AWS lambda, I have created sample lambda function and deploy it successfully. Now I want to connect my lambda with Mongodb and need to update collection using query but didn't get any information for the same.
I have tried integrating spring in lambda but after researching I found out that spring is not recommended and not good practice to use in lambda. I want to connect to the MongoDB database.
Below is the sample java code.
public class App implements RequestHandler<Object, Object> {
@Override
public Object handleRequest(Object o, Context context) {
System.out.println("welcome to lambda function yeh.!!!");
return null;
}
}