Jason Baird
Posts: 0
Joined: Tue Nov 26, 2013 11:38 pm

Added column to the users' collection but cannot return

I cannot return the column although it's in the response. I'm doing this at login, it returns the token and userid fine, but will not return the custom column. Even testing it just comes up with just the two items, though i'm certain I set it up right. Bug? I saw another post from 4 months ago, about the same thing clarified it was a bug but it also said it was fixed.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Added column to the users' collection but cannot return

Hi Jason,

Please share the app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us what service to see. What data should be returned?

Jason Baird
Posts: 0
Joined: Tue Nov 26, 2013 11:38 pm

Added column to the users' collection but cannot return

It's shared already. it should return g_id from the users table into the varg_id localStorage variable during the login process from the startScreen

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Added column to the users' collection but cannot return

Jason,

Please remind the app name.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Added column to the users' collection but cannot return

Hi Jason,

In file 'ScanGym.js', line 22:preif (limit + skip > 0){/preReplace:precode>/code/prewithpre/pre

Jason Baird
Posts: 0
Joined: Tue Nov 26, 2013 11:38 pm

Added column to the users' collection but cannot return

Although i did fix that. I'm still seeing the same issue. On the startScreen, in the login service I have mapped column g_id - to local storage varg_id and it's still null. The service is running since I do get the token and the userID.

Jason Baird
Posts: 0
Joined: Tue Nov 26, 2013 11:38 pm

Added column to the users' collection but cannot return

Even in testing I just see this:

{
"_id":"52a6026be4b06de3a9a02d68",
"sessionToken":"fe69b5e7-6902-4002-a73f-c48fbbcfea32"
}

it should be...

{
"_id":"52a6026be4b06de3a9a02d68",
"sessionToken":"fe69b5e7-6902-4002-a73f-c48fbbcfea32"
"g_id":"something"
}

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Added column to the users' collection but cannot return

Hi Jason,

Login service always returns _id and sessionToken only. To get other collection fields you would need to create a service for reading data: http://docs.appery.io/documentation/b...

Return to “Issues”