Revision
Unpublished object or unsaved changes to an existing object.
1@gca_object_type(2internalName: "com.psddev.cms.db.Draft"3embedded: false4id: "c0b701ca-9271-39f9-821b-f281f89b7789"5abstract: false6)
1type Revision implements Record, Recordable, RevisionInterface, PathsField, Content {2_id: ID3_label: String4_globals: Globals!5_raw(6path: String7): Json8_state(9path: String10): Json @deprecated11_urls: URLs!12status: RecordRef13schedule: RecordRef14name: String15owner: RecordRef16objectType: ObjectType17objectId: UUID18objectChanges: MapOfJson @deprecated19newContent: Boolean!20differences: MapOfMapOfJson21overlayId: UUID22overlayReplace: Boolean!23replace: Boolean!24searchableState: String25RevisionInterfaceMod: RevisionInterfaceMod!26}
Directives
gca_object_type
1@gca_object_type(2internalName: "com.psddev.cms.db.Draft"3embedded: false4id: "c0b701ca-9271-39f9-821b-f281f89b7789"5abstract: false6)
Fields
_id ● ID scalar common
The unique ID of the Record. Corresponds to the Java method Record#getId and State#getId.
_label ● String scalar common
The display name of the Record instance. Corresponds to the Java methods Record#getLabel and State#getLabel.
_globals ● Globals! non-null object common
Contains global Modification fields for this Record instance.
_raw ● Json scalar common
Contains raw State JSON for this Record instance. The same as invoking getState().getSimpleValues();
path ● String scalar common
Restricts the returned JSON to the specified path within the record’s state.
_urls ● URLs! non-null object common
status ● RecordRef object common @gca_getter @gca_object_field
Returns the status.
Applied directive:
1@gca_getter
Applied directive:
1@gca_object_field(2indexed: true3internalName: "status"4embedded: false5)
schedule ● RecordRef object common @gca_getter @gca_object_field
Returns the schedule.
Applied directive:
1@gca_getter
Applied directive:
1@gca_object_field(2indexed: true3internalName: "schedule"4embedded: false5)
name ● String scalar common @gca_getter @gca_object_field
Returns the name.
Applied directive:
1@gca_getter
Applied directive:
1@gca_object_field(2indexed: true3internalName: "name"4embedded: false5)
owner ● RecordRef object common @gca_getter @gca_object_field
Returns the owner.
Applied directive:
1@gca_getter
Applied directive:
1@gca_object_field(2indexed: true3internalName: "owner"4embedded: false5)
objectType ● ObjectType object common @gca_getter @gca_object_field
Returns the originating object's type.
Applied directive:
1@gca_getter
Applied directive:
1@gca_object_field(2indexed: true3internalName: "objectType"4embedded: false5)
objectId ● UUID scalar common @gca_getter @gca_object_field
Returns the originating object's ID.
Applied directive:
1@gca_getter
Applied directive:
1@gca_object_field(2indexed: true3internalName: "objectId"4embedded: false5)
newContent ● Boolean! non-null scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: true3internalName: "newContent"4embedded: false5)
differences ● MapOfMapOfJson object common @gca_getter @gca_object_field
Never null.
Applied directive:
1@gca_getter
Applied directive:
1@gca_object_field(2indexed: false3internalName: "differences"4embedded: false5)
overlayId ● UUID scalar common @gca_getter @gca_object_field
Applied directive:
1@gca_getter
Applied directive:
1@gca_object_field(2indexed: true3internalName: "overlayId"4embedded: false5)
overlayReplace ● Boolean! non-null scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "overlayReplace"4embedded: false5)
replace ● Boolean! non-null scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "replace"4embedded: false5)
searchableState ● String scalar common @gca_object_method
Not intended for external use!
Applied directive:
1@gca_object_method(2embedded: false3internalName: "getSearchableState"4indexed: false5)
RevisionInterfaceMod ● RevisionInterfaceMod! non-null object common
Hide deprecated
_state ● Json deprecated scalar common
Use [_raw] instead. For removal in 5.0!
Contains raw State JSON for this Record instance. The same as invoking getState().getSimpleValues();
path ● String scalar common
Restricts the returned JSON to the specified path within the record’s state.
objectChanges ● MapOfJson deprecated object common @gca_getter @gca_object_field
Deprecated
Returns the map of all the values to be changed on the originating object.
Applied directive:
1@gca_getter
Applied directive:
1@gca_object_field(2indexed: false3internalName: "objectChanges"4embedded: false5)
Interfaces
Record interface common
Recordable interface common
The super interface for all types backed by data models, e.g. Java classes that implement Recordable. This interface declares a single _id field containing the UUID of the record. A corresponding _type field is intentionally omitted as it can be derived programmatically from the built-in GraphQL __typename field. Each GraphQL type that implements this interface will be annotated with the @gca_object_type directive which contains the backing data model's type ID.
RevisionInterface interface common @gca_object_type
An interface indicating the type is capable of producing a revision that can be surfaced in the CMS RevisionsWidget.
1@gca_object_type(2internalName: "com.psddev.cms.db.Revision"3embedded: false4id: "829b0448-680d-391e-ab6f-3478c42f34e7"5abstract: true6)
PathsField interface common
Content interface common @gca_object_type
Represents a generic content.
1@gca_object_type(2internalName: "com.psddev.cms.db.Content"3embedded: false4id: "ef5b6d18-7ddc-3eac-b655-cbbd126756d5"5abstract: true6)
Member Of
Record__RevisionItemobject