On Mon, Mar 17, 2014 at 4:57 AM, Xuân Hùng Đào <[email protected]>
 wrote:

> In database, "Alias" field is a primary key. Below is my query to get list
> News :
>
> q = datastore.NewQuery("News").Limit(10)
>
> listNews := make([]entity.News, 0, 10)
>
> if _, err := q.GetAll(context, &listNews); err != nil {
>
> Problem is i can't get Alias field from return results :
>


It's unclear if the problem is whether the alias field is there, or whether
anything is being returned from the datastore at all.

Can you print out the contents of *listNews* after the *GetAll* call, and
see what entries there are?


-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to