Support Topics Documentation Slack YouTube Blog

Crud rookie, stuck

Mission: CRUD ROOKIE
Task: Retrieve Object With API

The task explanation is very unclear how you need to complete this task.
There is some Javascript shown in the task description, but no JSON that I can enter in the Request-body in the REST Console. What must I do with this javascript?

Regards
Folkert

You may create simple JS project, install backendless npm module there and run code inside this project, or you can use REST Console:

Regards,
Stanislaw

Thanx, but I need to enter the “first” parameter somewhere to retrieve the first object/record from my Person table. The Request URL is not editable to me. Is that always so?

Ah, sorry. I can share one workaround for you in REST console - instead of ObjectId put there ‘first’ string. That would do a trick :slight_smile: Also ‘last’ string would return last object (just for future).
Currently we’re working on redesign of this screen to make it more intuitive and simple, also with more features to be added.

Regards,
Stanislaw

Thanx Stanislaw for all those fast replies to rookies like me!

I just found out myself. It would be good to mention this in the Task description!
I thought that Object Id was only to be used for real ID’s,

Also Count works in the ObjectId :smiley:

Yeah, it also works :slight_smile:

Will do that!

You’re welcome! Happy coding!

Stanislaw