Closed ohlr closed 4 years ago
Good question, we're aware of the schema stitching issue.
Are you trying to implement incremental builds?
nah, I simply wanted to add an estimate for readingtime to my blogposts...
I'm using the following client side code now:
let allText = "";
main?.body?.map((slice) => {
if (slice.type === "text") {
allText += RichText.asText(slice?.primary?.text) + " ";
}
});
const timeToRead = readingTime(allText);
Still would be cool to obtain this via graphql - serverside
I tried this plugin to calculate readingtime serverside but as this plugin apparently uses schema stiching this isn't possible.
https://github.com/moonmeister/gatsby-plugin-readingtime/issues/4#issuecomment-663630157
Any ideas how to compute readingtime server side?