Page 1 of 1
Added column to the users' collection but cannot return
Posted: Fri Dec 06, 2013 7:02 pm
by Jason Baird
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.
Added column to the users' collection but cannot return
Posted: Fri Dec 06, 2013 7:23 pm
by Kateryna Grynko
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?
Added column to the users' collection but cannot return
Posted: Fri Dec 06, 2013 7:54 pm
by Jason Baird
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
Added column to the users' collection but cannot return
Posted: Fri Dec 06, 2013 7:56 pm
by Kateryna Grynko
Jason,
Please remind the app name.
Added column to the users' collection but cannot return
Posted: Fri Dec 06, 2013 8:15 pm
by Jason Baird
Added column to the users' collection but cannot return
Posted: Fri Dec 06, 2013 9:16 pm
by Kateryna Grynko
Hi Jason,
In file 'ScanGym.js', line 22:preif (limit + skip > 0){/preReplace:precode>/code/prewithpre/pre
Added column to the users' collection but cannot return
Posted: Mon Dec 09, 2013 5:57 pm
by Jason Baird
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.
Added column to the users' collection but cannot return
Posted: Mon Dec 09, 2013 6:07 pm
by Jason Baird
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"
}
Added column to the users' collection but cannot return
Posted: Tue Dec 10, 2013 9:38 am
by Kateryna Grynko
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...