Skip to main content

ExampleModel

@gca_object_type

An example model that demonstrates all the possible field types.

1
@gca_object_type(
2
abstract: false
3
embedded: false
4
id: "ea936414-9454-37f9-9fed-848014938adf"
5
internalName: "com.brightspot.docs.graphql.example.docs.ExampleModel"
6
)
1
type ExampleModel implements RecordEntry, Record, Recordable, RecordMutationEntry, PathsField, Content {
2
_id: ID
3
_label: String
4
_globals: Globals!
5
_raw(
6
path: String
7
): Json
8
_state(
9
path: String
10
): Json @deprecated
11
_urls: URLs!
12
exampleString: String
13
exampleRichTextString: RichText
14
exampleInteger: Int!
15
exampleBoxedInteger: Int
16
exampleLong: Long!
17
exampleBoxedLong: Long
18
exampleFloat: Float!
19
exampleBoxedFloat: Float
20
exampleDouble: Float!
21
exampleBoxedDouble: Float
22
exampleBoolean: Boolean!
23
exampleBoxedBoolean: Boolean
24
exampleEnum: ExampleEnum
25
exampleLocale: Locale
26
exampleDate: Date
27
exampleInstant: Instant
28
exampleOffsetDateTime: OffsetDateTime
29
exampleOffsetTime: OffsetTime
30
exampleLocalDateTime: LocalDateTime
31
exampleLocalDate: LocalDate
32
exampleLocalTime: LocalTime
33
exampleZoneOffset: ZoneOffset
34
exampleZoneId: ZoneId
35
exampleZonedDateTime: ZonedDateTime
36
exampleDuration: Duration
37
examplePeriod: Period
38
exampleYear: Year
39
exampleYearMonth: YearMonth
40
exampleMonthDay: MonthDay
41
exampleURL: URL
42
exampleURI: URI
43
exampleFile: StorageItem
44
exampleReferenceModel: RecordRef
45
exampleReferenceInterface: RecordRef
46
exampleEmbeddedModel: ExampleEmbeddedModel
47
exampleEmbeddedAbstractParentModel: ExampleEmbeddedAbstractParentModel
48
exampleUUID: UUID
49
exampleLocation: GeoPoint
50
exampleRegion: GeoAreaType
51
exampleMap: MapOfJson
52
exampleObject: Json
53
ExampleModelMod: ExampleModelMod!
54
}

Directives​

gca_object_type​

1
@gca_object_type(
2
abstract: false
3
embedded: false
4
id: "ea936414-9454-37f9-9fed-848014938adf"
5
internalName: "com.brightspot.docs.graphql.example.docs.ExampleModel"
6
)

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(
2
embedded: false
3
indexed: false
4
internalName: "exampleString"
5
)

exampleRichTextString ● RichText object common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleRichTextString"
5
)

exampleInteger ● Int! non-null scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleInteger"
5
)

exampleBoxedInteger ● Int scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleBoxedInteger"
5
)

exampleLong ● Long! non-null scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleLong"
5
)

exampleBoxedLong ● Long scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleBoxedLong"
5
)

exampleFloat ● Float! non-null scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleFloat"
5
)

exampleBoxedFloat ● Float scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleBoxedFloat"
5
)

exampleDouble ● Float! non-null scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleDouble"
5
)

exampleBoxedDouble ● Float scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleBoxedDouble"
5
)

exampleBoolean ● Boolean! non-null scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleBoolean"
5
)

exampleBoxedBoolean ● Boolean scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleBoxedBoolean"
5
)

exampleEnum ● ExampleEnum enum common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleEnum"
5
)

exampleLocale ● Locale scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleLocale"
5
)

exampleDate ● Date scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleDate"
5
)

exampleInstant ● Instant scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleInstant"
5
)

exampleOffsetDateTime ● OffsetDateTime scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleOffsetDateTime"
5
)

exampleOffsetTime ● OffsetTime scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleOffsetTime"
5
)

exampleLocalDateTime ● LocalDateTime scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleLocalDateTime"
5
)

exampleLocalDate ● LocalDate scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleLocalDate"
5
)

exampleLocalTime ● LocalTime scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleLocalTime"
5
)

exampleZoneOffset ● ZoneOffset scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleZoneOffset"
5
)

exampleZoneId ● ZoneId scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleZoneId"
5
)

exampleZonedDateTime ● ZonedDateTime scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleZonedDateTime"
5
)

exampleDuration ● Duration scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleDuration"
5
)

examplePeriod ● Period scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "examplePeriod"
5
)

exampleYear ● Year scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleYear"
5
)

exampleYearMonth ● YearMonth scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleYearMonth"
5
)

exampleMonthDay ● MonthDay scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleMonthDay"
5
)

exampleURL ● URL scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleURL"
5
)

exampleURI ● URI scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleURI"
5
)

exampleFile ● StorageItem object common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleFile"
5
)

exampleReferenceModel ● RecordRef object common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleReferenceModel"
5
)

exampleReferenceInterface ● RecordRef object common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleReferenceInterface"
5
)

exampleEmbeddedModel ● ExampleEmbeddedModel object common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: true
3
indexed: false
4
internalName: "exampleEmbeddedModel"
5
)

exampleEmbeddedAbstractParentModel ● ExampleEmbeddedAbstractParentModel interface common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: true
3
indexed: false
4
internalName: "exampleEmbeddedAbstractParentModel"
5
)

exampleUUID ● UUID scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleUUID"
5
)

exampleLocation ● GeoPoint object common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleLocation"
5
)

exampleRegion ● GeoAreaType object common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleRegion"
5
)

exampleMap ● MapOfJson object common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleMap"
5
)

exampleObject ● Json scalar common @gca_object_field​

Applied directive:

1
@gca_object_field(
2
embedded: false
3
indexed: false
4
internalName: "exampleObject"
5
)

ExampleModelMod ● ExampleModelMod! non-null object common​

Hide deprecated

_state ● Json deprecated scalar common​

DEPRECATED

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(
2
abstract: true
3
embedded: false
4
id: "ef5b6d18-7ddc-3eac-b655-cbbd126756d5"
5
internalName: "com.psddev.cms.db.Content"
6
)

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.