Reputation: 537
How can I retrieve the last 10 records from a table using azure mobile services. I tried the following but it's syntactically wrong App.MobileService.GetTable().OrderBy().Take(10).ToListAsync(); I know that I have to use the CreatedAt attribute, but I can't figure out how it's done
Upvotes: 0
Views: 105
Reputation: 5113
Something like
App.MobileService.GetTable().OrderBy('__createdAt').Take(10).ToListAsync();
Upvotes: 1