Simplest way to retrieve object

I am moving from Parse and I feel it difficult to understand how to query backendless objects. I felt it was easy to query Parse objects as below.

 var query = new Parse.Query("Object");
 query.find();

Can you please let me know the simplest way to retrieve objects from backendless? I saw examples from docs section and it’s not simple for a beginner like me.

Backendless.Persistence.of(Object).find();

I downloaded the autogenerated code from “Code Generation” page and having issues with it. The code is not able to recognize the class due to the below issue in console. I have included all the generated .js file.

Uncaught ReferenceError: $rootScope is not defined

Thanks in advance.

If you have table called “Car”, then to load the Car objects you do this:

  1. Define Car constructor in JS:
function Car() {}
  1. Load Car objects:
var carCollection = Backendless.Persistence.of( Car ).find();