Skip to main content

ExampleViewModel

@gca_view_type

An example view model.

1
@gca_view_type(
2
class: "com.brightspot.docs.graphql.example.docs.ExampleViewModel"
3
name: "com.brightspot.docs.graphql.example.docs.ExampleViewModel"
4
template: ""
5
)
1
type ExampleViewModel implements View, ViewModelOverlay, Record__ExampleViewModel__Data {
2
_id: ID
3
_overlay(
4
with: ViewModelOverlayInput
5
): Json
6
_raw(
7
path: String
8
): Json
9
exampleBoxedDouble: Float
10
exampleBoxedInteger: Int
11
exampleDouble: Float!
12
exampleImageSizeMap: ImageAttributes
13
exampleInteger: Int!
14
exampleString: String
15
reference: ExampleReferenceViewModel
16
referenceInterface: ExampleReferenceInterfaceView
17
}

Directives​

gca_view_type​

1
@gca_view_type(
2
class: "com.brightspot.docs.graphql.example.docs.ExampleViewModel"
3
name: "com.brightspot.docs.graphql.example.docs.ExampleViewModel"
4
template: ""
5
)

Fields​

_id ● ID scalar common​

_overlay ● Json scalar common​

with ● ViewModelOverlayInput input common​

_raw ● Json scalar common​

Contains raw JSON for this View instance.

path ● String scalar common​

Restricts the returned JSON to the specified path within the view’s map.

exampleBoxedDouble ● Float scalar common​

exampleBoxedInteger ● Int scalar common​

exampleDouble ● Float! non-null scalar common​

exampleImageSizeMap ● ImageAttributes object common​

Gets the example image size map.

exampleInteger ● Int! non-null scalar common​

exampleString ● String scalar common​

Gets the example value.

reference ● ExampleReferenceViewModel object common​

Gets the reference view model.

referenceInterface ● ExampleReferenceInterfaceView interface common​

Gets the reference view model.

Interfaces​

View interface common​

ViewModelOverlay interface common​

Record__ExampleViewModel__Data interface common​

Member Of​

Was this page helpful?

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