Skip to content

className doesn't come right in custom query #49

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

Closed
cetorres opened this issue Jan 21, 2019 · 5 comments
Closed

className doesn't come right in custom query #49

cetorres opened this issue Jan 21, 2019 · 5 comments

Comments

@cetorres
Copy link

cetorres commented Jan 21, 2019

Hi,

This is how I'm doing the query. My custom class is called Customer:
var query = "order=name";
var response = await ParseObject('Customer').query(query);

This is the debug print as the result of the query. Notice that the className doesn't bring the correct name of the class, that was supposed to bring "Customer". It's bringing "className".

I/flutter (20753): Parse API Response (Customer : ParseApiRQ.query) :
I/flutter (20753): Status Code: 200
I/flutter (20753): Payload: [{"className":"className","objectId":"ok0nKdMvkI","createdAt":"2019-01-18T17:02:41.109Z","updatedAt":"2019-01-18T23:19:50.064Z","name":"Fulano de Tal","email":"[email protected]","phone":"3423532","active":true,"user":null}, {"className":"className","objectId":"uT0NYuGQyM","createdAt":"2019-01-18T17:03:58.910Z","updatedAt":"2019-01-18T23:19:39.620Z","name":"José Silva","email":"[email protected]","active":true,"user":null}]

@phillwiggins
Copy link
Member

Is that you exact code for a query?

@cetorres cetorres changed the title Problem with query after the 1.0.9 update. className doesn't come right in custom query Jan 21, 2019
@cetorres
Copy link
Author

Sorry, the query is working. But just the className doesn't come right as I showed in the debug print.
Also the result object inside the response brings the the class name like "classes/className".
I believe it was supposed to bring the correct name of the custom class (from my Parse server).

@phillwiggins
Copy link
Member

phillwiggins commented Jan 21, 2019 via email

@cetorres
Copy link
Author

No, there's no field called className. That's from the response result.

@phillwiggins
Copy link
Member

phillwiggins commented Jan 21, 2019 via email

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

No branches or pull requests

2 participants