Issue to fetch Unpublished document on the api-migration-release


I am currently building a feature using the migration API and I manage to post new documents with it.
But my issue is, when I try to fetch the unpublished documents that are in the migration release (by passing the correct ref and lang to the SDK), no documents are returned (empty array).

const documents = await prismicClient.getAllByType(document.type, {
          ref: migration_ref,
          lang: '*',

Weirdly after previewing these documents, only after that they appear in the reponse.

I dont know what is the issue here. Would you give a hint ? :slight_smile:

Kind regards