0

When I do .find() or first() on Parse (cloud-code or otherwise) and get a results objects. If I then do .get(fieldName) on the result object does that do another db call and hence needs further asynchronous handling? Or is the data now local? If so, how can I introspect the results object in the console without using .get()

Note I'm using the JavaScript

1 Answer 1

1

No, it's local or it doesn't exist (if you specified to only find certain keys and you request a different one) so there is no additional network / database request.

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

4 Comments

Ah so what kind of object structure comes back? Why can't I introspect the fields of the results in the console? Or how?
Parse objects appear to be effectively a dictionary, that's why you have to use get instead of having direct access to the keys
I'm confused because that's not how in used to dealing with Json... Json is effectively s dict
yes, this isn't like JSON objects (plain objects), it's a specific object with a provided API

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.