Skip to content

Content stage only showing Draft & not Published #266

@SanyamPunia

Description

@SanyamPunia

I've published two documents on the CMS and I'm fetching + rendering them inside my Next.js application.

I want to render only those documents which are in the published stage, and not in draft.

When I fetch the content using GraphQL in the API playground, the stage attribute is always in the draft stage, even after I published it.


GraphQL query

query getBlogStage{
  portfolioBlogs {
    id
    title
    stage
  }
}

Output

image

In the specific content, it's also showing the published stage

image

I would appreciate if anyone could find possible fix for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions