-
Notifications
You must be signed in to change notification settings - Fork 121
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
Getting null data for specific query #244
Comments
I shared a similar situation, is that when the data has only 9 entries, and with the Any idea on how to fix or is this a bug (or feature?) |
I don't understand your situation. Can you explain with an example? It is really weird getting |
Yes it is also quite weird to me that it returns Assume I have a query that is going to get the comments, and the query looks like this: if I have the The stack trace retrieved from Android Studio is as follows Thank you for the assistance! |
Is there any known solution? |
That's also what I am looking for :-( |
@dokumanx I think we shared a similar issue, would you also post your stack trace provided in Android Studio breakpoint so that someone can see that? |
@dokumanx in the debug console you posted, there was a linkException. Can you post the full exception? |
stackTrace:
Error Message:
Error Location in
|
Looks like you're using a custom Did you follow the instructions in the docs for custom scalars? |
I haven't changed anything for |
It would only affect this part of the query because it only triggers when trying to deserialize the scalar. Please read the docs. https://ferrygraphql.com/docs/custom-scalars#using-structuredserializers |
I read the docs. But still have no clue about creating |
Basically, to my understanding, you would have to create a Model class in your dart project, then specify how will the json object http response in plain text will be converted into your own dart classes. This the process known as serialization and deserialization. If you wish, you may also refer to |
ferry expects built_value serializers, so you won't be able to use json_serializable |
I suggest asking for help on the discord |
Hi, I am getting null response below query with ferry. I can get correct data within playground but ferry. I have tried different approaches but without an error it is hard to catch what is going on. If anyone has an idea please leave a comment.
Query
Dart code that returns null data
Debug console
The text was updated successfully, but these errors were encountered: