Working on a project right now, I felt the need to be able to query for unpublished content types - to generate Preview Links for a Next.js frontend more specifically.
I took the liberty to expand the logic in the graphql type, as well as the slugController.
With these changes publicationState can be added as an optional arg to the fingSlug query and can be passed to the regular REST endpoint as an optional query param.
Hey there, thanks for this awesome plugin!
Working on a project right now, I felt the need to be able to query for unpublished content types - to generate Preview Links for a Next.js frontend more specifically.
I took the liberty to expand the logic in the graphql type, as well as the slugController.
With these changes publicationState can be added as an optional arg to the fingSlug query and can be passed to the regular REST endpoint as an optional query param.