I'm having some difficulty with linked documents, that I thought should be pretty straight forward. I have the following code:
const api = await Prismic.getApi('https://ionicframeworkcom.prismic.io/api/v2');
const response = await api.getSingle('resources_landing', {'fetchLinks' : ['article.author']});
console.log(response)
The response I get back has all of resources_landing
including its many document link fields, but the linked_documents
array is empty.
I'm on prismic-javascript 2.7.1. It seems like the documentation is pushing me towards GraphQL, which may be a little verbose for this. Is fetchLinks being depreciated?