ExampleModel
An example model that demonstrates all the possible field types.
1@gca_object_type(2internalName: "com.brightspot.docs.graphql.example.docs.ExampleModel"3embedded: false4id: "ea936414-9454-37f9-9fed-848014938adf"5abstract: false6)
1type ExampleModel implements RecordEntry, Record, Recordable, RecordMutationEntry, PathsField, Content {2_id: ID3_label: String4_globals: Globals!5_raw(6path: String7): Json8_state(9path: String10): Json @deprecated11_urls: URLs!12exampleString: String13exampleRichTextString: RichText14exampleInteger: Int!15exampleBoxedInteger: Int16exampleLong: Long!17exampleBoxedLong: Long18exampleFloat: Float!19exampleBoxedFloat: Float20exampleDouble: Float!21exampleBoxedDouble: Float22exampleBoolean: Boolean!23exampleBoxedBoolean: Boolean24exampleEnum: ExampleEnum25exampleLocale: Locale26exampleDate: Date27exampleInstant: Instant28exampleOffsetDateTime: OffsetDateTime29exampleOffsetTime: OffsetTime30exampleLocalDateTime: LocalDateTime31exampleLocalDate: LocalDate32exampleLocalTime: LocalTime33exampleZoneOffset: ZoneOffset34exampleZoneId: ZoneId35exampleZonedDateTime: ZonedDateTime36exampleDuration: Duration37examplePeriod: Period38exampleYear: Year39exampleYearMonth: YearMonth40exampleMonthDay: MonthDay41exampleURL: URL42exampleURI: URI43exampleFile: StorageItem44exampleReferenceModel: RecordRef45exampleReferenceInterface: RecordRef46exampleEmbeddedModel: ExampleEmbeddedModel47exampleEmbeddedAbstractParentModel: ExampleEmbeddedAbstractParentModel48exampleUUID: UUID49exampleLocation: GeoPoint50exampleRegion: GeoAreaType51exampleMap: MapOfJson52exampleObject: Json53ExampleModelMod: ExampleModelMod!54}
Directives
gca_object_type
1@gca_object_type(2internalName: "com.brightspot.docs.graphql.example.docs.ExampleModel"3embedded: false4id: "ea936414-9454-37f9-9fed-848014938adf"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
exampleString ● String scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleString"4embedded: false5)
exampleRichTextString ● RichText object common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleRichTextString"4embedded: false5)
exampleInteger ● Int! non-null scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleInteger"4embedded: false5)
exampleBoxedInteger ● Int scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleBoxedInteger"4embedded: false5)
exampleLong ● Long! non-null scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleLong"4embedded: false5)
exampleBoxedLong ● Long scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleBoxedLong"4embedded: false5)
exampleFloat ● Float! non-null scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleFloat"4embedded: false5)
exampleBoxedFloat ● Float scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleBoxedFloat"4embedded: false5)
exampleDouble ● Float! non-null scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleDouble"4embedded: false5)
exampleBoxedDouble ● Float scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleBoxedDouble"4embedded: false5)
exampleBoolean ● Boolean! non-null scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleBoolean"4embedded: false5)
exampleBoxedBoolean ● Boolean scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleBoxedBoolean"4embedded: false5)
exampleEnum ● ExampleEnum enum common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleEnum"4embedded: false5)
exampleLocale ● Locale scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleLocale"4embedded: false5)
exampleDate ● Date scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleDate"4embedded: false5)
exampleInstant ● Instant scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleInstant"4embedded: false5)
exampleOffsetDateTime ● OffsetDateTime scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleOffsetDateTime"4embedded: false5)
exampleOffsetTime ● OffsetTime scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleOffsetTime"4embedded: false5)
exampleLocalDateTime ● LocalDateTime scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleLocalDateTime"4embedded: false5)
exampleLocalDate ● LocalDate scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleLocalDate"4embedded: false5)
exampleLocalTime ● LocalTime scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleLocalTime"4embedded: false5)
exampleZoneOffset ● ZoneOffset scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleZoneOffset"4embedded: false5)
exampleZoneId ● ZoneId scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleZoneId"4embedded: false5)
exampleZonedDateTime ● ZonedDateTime scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleZonedDateTime"4embedded: false5)
exampleDuration ● Duration scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleDuration"4embedded: false5)
examplePeriod ● Period scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "examplePeriod"4embedded: false5)
exampleYear ● Year scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleYear"4embedded: false5)
exampleYearMonth ● YearMonth scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleYearMonth"4embedded: false5)
exampleMonthDay ● MonthDay scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleMonthDay"4embedded: false5)
exampleURL ● URL scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleURL"4embedded: false5)
exampleURI ● URI scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleURI"4embedded: false5)
exampleFile ● StorageItem object common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleFile"4embedded: false5)
exampleReferenceModel ● RecordRef object common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleReferenceModel"4embedded: false5)
exampleReferenceInterface ● RecordRef object common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleReferenceInterface"4embedded: false5)
exampleEmbeddedModel ● ExampleEmbeddedModel object common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleEmbeddedModel"4embedded: true5)
exampleEmbeddedAbstractParentModel ● ExampleEmbeddedAbstractParentModel interface common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleEmbeddedAbstractParentModel"4embedded: true5)
exampleUUID ● UUID scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleUUID"4embedded: false5)
exampleLocation ● GeoPoint object common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleLocation"4embedded: false5)
exampleRegion ● GeoAreaType object common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleRegion"4embedded: false5)
exampleMap ● MapOfJson object common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleMap"4embedded: false5)
exampleObject ● Json scalar common @gca_object_field
Applied directive:
1@gca_object_field(2indexed: false3internalName: "exampleObject"4embedded: false5)
ExampleModelMod ● ExampleModelMod! 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.
Interfaces
RecordEntry interface common
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.
RecordMutationEntry interface common
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)