Thank you, Supriya! Just learnt about fulfillWithValue and rejectWithValue, it'll surely be helpful.
Very Well Explained, Good Read
I don't know much about graphQL but still able to understand the blog and bookmarked it for future well explained , just a req can you share some resources to get started with graphQL
Though I don't have much context about graphQL, I understood almost everything! Thanks a lot! Would be helpful in future! 🔥💯
Supriya M
Software Engineer
Very well explained blog Hetav! I wasn't aware that GraphQL sends status 200 for errors as well. I have used
thunkAPIoptions such asfulfillWithValueandrejectWithValueto return the fulfilled and rejected values respectively. By doing so, you would avoid creating an Error object explicitly.