Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS GraphQL versioning draft mode #9867

Open
wants to merge 1 commit into
base: 4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Docs for the current stable version (3.x) can be found
For the most part, if your DataObject has the `Versioned` extension applied, there is nothing you need to do
explicitly, but be aware that it will affect the operations and fields of your type.

By default, records will be queried in "Live" mode.

### Versioned plugins

There are several plugins provided by the `silverstripe-versioned` module that affect how versioned DataObjects
Expand Down Expand Up @@ -94,6 +96,17 @@ fields:
The query will automatically apply the settings from the `versioning` input type to the query and affect
the resulting `DataList`.

Get all pages in draft mode:

```graphql
query readPages(versioning: {
mode: DRAFT
}) {
nodes {
title
}
}
```

#### The "unpublishOnDelete" plugin

Expand Down