I am trying to query a document using the $prismic object
$prismic.client.getByUID(uid, type), however I keep getting an error. I assume I must be missing an import somewhere?
Am I missing something?
P.S. In your documentation you have it listed as
$prismic.client.getByUID(uid, type) however in your example, it seems to follow type and THEN uid
const document = await $prismic.client.getByUID('page', params.uid)