We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For some specific queries, I was getting NULL response
So I did some digging, finally found that, in the response if a field is null, then the entire response becomes null
For example ,
In this response,
{ "data": { "cable_opr_by_pk": { "address": "124", "cable_name": "erty", "email": "rrr@yopp.com", "password": "qwer123", "phone_no": "9876543210", "user_id": 11, "isActive": false, "paid_month": null } }
The paid_month is null. So what happens is, the entire response becomes null, that is
paid_month
null
final resp = await client.request(reqCust).firstWhere((response) => response.dataSource != DataSource.Optimistic);
In the above execution, resp.data?.cable_opr_by_pk in NULL .
resp.data?.cable_opr_by_pk
But if I added some value for paid_month in the DB and retried, then I able to get result since paid_month is not NULL.
Why this is happening ? Please help me
The text was updated successfully, but these errors were encountered:
You will probably find the reason by checking the additional fields of the response that are for error handling.
Sorry, something went wrong.
No branches or pull requests
For some specific queries, I was getting NULL response
So I did some digging, finally found that, in the response if a field is null, then the entire response becomes null
For example ,
In this response,
The
paid_month
isnull
. So what happens is, the entire response becomes null, that isfinal resp = await client.request(reqCust).firstWhere((response) => response.dataSource != DataSource.Optimistic);
In the above execution,
resp.data?.cable_opr_by_pk
in NULL .But if I added some value for paid_month in the DB and retried, then I able to get result since
paid_month
is not NULL.Why this is happening ? Please help me
The text was updated successfully, but these errors were encountered: