There’s a typo in the documentation on this link:
Line 11 should read
.then(records => recordsGetter.serialize(records))
Current code returns no data.
Not sure where this should be reported so let me know if you want me to open an issue somewhere instead.