Apigee Database connectivity

How to connect to data base from Apigee,i have gone through from Apigee community ,But still am not clear with it.They all suggested to do via Node.js .Can you guys bit elaborate how to implement in the Node js.can you give me the sample code if possible.

0 1 1,571
1 REPLY 1

Yes, we need to use Nodejs to connect to DB from Apigee.

We can make use of node modules and connect to MySQL, Mongodb etc.,

Then we use the Nodejs Express module to create Restful Interface.

I have attached a sample proxy, with Nodejs code for connecting and performing CRUD operations on an online DaaS MongoDB.

This example uses traditional Apigee Nodejs Proxy, where we need to install node modules(mongoose in this example) using Apigee Management API.

If required you can also explore HostedTargets(Beta).

Explore the options and post your queries.

mongodb-nodejs-rev1-2019-01-07.zip