Use of Firebase LimitToLast

Is anyone currently using limitToLast with firebase queries?

I need to limit database retrives to the X most recent items but am having trouble finding out how that could be accomplished in AppGyver…

Suggestions? I appreciate any help.

Thanks in advance.