0

I want to Query the data from the table on parse collection.

This my code

  var DummyObject = Parse.Object.extend("dummyFlow2");
  var dummyObject = new DummyObject();
  var query = new Parse.Query(DummyObject);
  query.equalTo("oneT", 280);
  query.find({
    success: function(results) {
        alert("Successfully retrieved " + results.length + " scores.");
        // Do something with the returned Parse.Object values
        console.log(results);
        console.log(results[0]);
      },
      error: function(error) {
        alert("Error: " + error.code + " " + error.message);
      }
    });

But i only got the id of the data not the content of it like this

enter image description here

This is some data from my class

enter image description here

So how can i get the rest of the data?

Thanks!

1
  • Did you try accessing it instead of just debugging? Commented Nov 30, 2015 at 8:34

1 Answer 1

1

try this to get the contents: Basically if you want to access data from parse object then data is stored with attributes and element name

EX as follows:

to get MF:

results[0].attributes.MF

to get id:

results[0].id

to get fiveHundred:

results[0].attributes.fiveHundred

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.