-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Comments
Is that you exact code for a query? |
Sorry, the query is working. But just the className doesn't come right as I showed in the debug print. |
Yes, the query might be right but I'm unsure as to the problem. Are you
casting the correct object in your query?
Looking at the payload, there's a feild called className in your table, is
that correct?
…On Mon, Jan 21, 2019, 21:02 Carlos Eugenio Torres ***@***.*** wrote:
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).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3g2LpcAoX_q6zKzePLju6Tgw0aX3ks5vFirSgaJpZM4aLgHt>
.
|
No, there's no field called className. That's from the response result. |
Can you post your full query please?
I'm not sure how to help on this with out anything to work with.
…On Mon, Jan 21, 2019, 21:43 Carlos Eugenio Torres ***@***.*** wrote:
No, there's no field called className. That's from the response result.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3iBMSDE4yy_PRSIe6mCGBUIO9vyMks5vFjSVgaJpZM4aLgHt>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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}]
The text was updated successfully, but these errors were encountered: