We use these URLs to create dynamic pages and to resolve internal links
After creating and registering the Link Resolver in the plugin, the routes become available in the url field in the metadata of the documents in the queries. The Link Resolver will create a unique URL path using each document's UID, like so: /blog/${doc.uid}.
You will find the complete information in the above link.
The linkResolver plugin option should be this: doc => linkResolver(doc) , not () => doc => linkResolver(doc)
The Link Resolver function is exporting the function using exports.linkResolver . This means the linkResolver needs to be imported like this: const { linkResolver} = require("./src/utils/linkResolver")