Skip to content

Expose hasPassword as a queryable field instead of just as an argument #3069

@Shaderpixel

Description

@Shaderpixel

What problem does this address?

On Faust-end, we would like the ability to know if a page/post has visibility set to password-protected. Currently there are no easy way to determine this. There are hasPassword and password query arguments but they are not helpful or direct in determining if a post is password protected.

What is your proposed solution?

Expose a hasPassword field or some flag that can easily determine if a page/post is password protected in the GQL schema and readable on Faust end.

What alternatives have you considered?

No response

Additional Context

This request is based on this Slack channel discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions