Connecting with the Backend DataBase using Node.js

Not applicable

Hi Team,

Could you please tell me, if I am trying to connect with the backend Database by follow this link

https://github.com/apigee/api-platform-samples/blob/master/doc-samples/nodejs-baas-cookbook/README.m....

I am facing issue. If I trace the output in console. It shows

{
  "employees": {
    "href": "./employees"
  }
}
Why it happens. please let me know

0 3 419
3 REPLIES 3

Your question is not clear. You will need to provide more information.

please include:

  1. What specifically are you doing? (include code and policy config here if appropriate)
  2. What are you seeing? (include cut/paste of curl output etc here)
  3. What are you expecting to see? (and characterize the difference between expectations and observations if you can)

@Hi A.Anu Manasa,

You need to help us with reproducing the same issue to help you resolve it. As already told, kindly try to include all the possible information to re-cause the issue. Perhaps, we may be of some help then.

Hi @A.Anu Manasa,

If you have followed Using Node.js to communicate with a backend data store, as per the following snippet,

var rootTemplate = {
		'employees' : {
			'href' : './employees'
			}
		};

app.get('/', function(req, resp) {
		resp.jsonp(rootTemplate);
		}
	);

the following end-point

http://<org-name>-<env-name>.apigee.net/employees

should respond

 {
  "employees": {
    "href": "./employees"
  }
}
http://<org-name>-<env-name>.apigee.net/employees/profiles

would respond with an empty array [], if the configuration variables are populated in config.js (provided, no data added)

Kindly post us the exact issue you are facing.

Thank you!