2 Replies Latest reply on Oct 2, 2015 2:16 AM by Joydeep Chakraborty

    How get records from DB using Js Rhom(FixedSchema)

    Stepan Boichyshyn

      I have some model Cart. I can create a new ecords using Rhome as js code. But ho i can get records from database?

      var cartModel = Rho.ORM.addModel(function(model) {

      I can use model function to get query

      function getCart(){cartModel.find("first")}

      But how get attributes from object? cartModel.find("first")  .name? or ["name"] does not work.And how get attributes from many records?

      function getCart(){cartModel.find("all")}

      AAartModel.find("first") car tModel.find("first")