You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uh that's odd. I know that I fixed something for this subject before I released the book and hoped that everything should be alright now. Wondering whether anyone else ran into this issue.
It looks strange to me too. I'm using node 8.11.3 and it works correctly without having to stringify the string.
Maybe check if what you are hashing is really a string, i.e.: endCursor: toCursorHash(edges[edges.length - 1].createdAt.toString())
The following functions caused me problems:
Apparently the createdAt object passed to
toCursorHash()
was not of type string. I got the following error message:Tested what type of the
string
is with javascriptstypeof
, and it revealed it to be of typeobject
.I fixed it with
However, I'm curious of why this happened and why it appears to work for others as in the book.
Setup:
The text was updated successfully, but these errors were encountered: