Skip to content

miss typo in get specific object by id #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2019
Merged

miss typo in get specific object by id #66

merged 1 commit into from
Feb 5, 2019

Conversation

Saifallak
Copy link
Contributor

@Saifallak Saifallak commented Feb 1, 2019

it should be getObject not get


- var dietPlan = await DietPlan().get('R5EonpUDWy');
+ var dietPlan = await DietPlan().getObject('R5EonpUDWy');

@phillwiggins
Copy link
Member

Question... Do they both work?

@Saifallak
Copy link
Contributor Author

Saifallak commented Feb 1, 2019

No they have different tasks/roles

DietPlan.get(id)

Gives you the id of that instance ..
just gives you the id var from the object instance
No server access ..
Local object
You can also DietPlan.get(name) ..etc

DietPlan.getObject(id)

Searches DB and retrieve the object whose objectId = id
You must provide id and nothing else

@phillwiggins phillwiggins merged commit 60cf20d into parse-community:develop Feb 5, 2019
fischerscode pushed a commit to fischerscode/Parse-SDK-Flutter that referenced this pull request Sep 5, 2020
miss typo in get specific object by id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants