| giolekva | 26a8b5f | 2020-05-01 20:01:13 +0400 | [diff] [blame] | 1 | enum EventState { |
| 2 | NEW |
| 3 | PROCESSING |
| 4 | DONE |
| giolekva | b0b7f00 | 2020-04-16 16:05:40 +0400 | [diff] [blame] | 5 | } |
| 6 | |
| giolekva | 26a8b5f | 2020-05-01 20:01:13 +0400 | [diff] [blame] | 7 | type Foo { bar: Int } |
| 8 | |
| 9 | # type Image { |
| 10 | # id: ID! |
| 11 | # objectPath: String! |
| 12 | # } |
| 13 | |
| 14 | # type ImageEvent { |
| 15 | # id: ID! |
| 16 | # state: EventState! |
| 17 | # node: Image! @hasInverse(field: events) |
| 18 | # } |
| 19 | |
| 20 | # extend type Image { |
| 21 | # events: [ImageEvent] @hasInverse(field: node) |
| 22 | # } |
| 23 | |
| 24 | |
| 25 | |
| 26 | # type ImageSegment { |
| 27 | # id: ID! |
| 28 | # bar: String |
| 29 | # source: Image! @hasInverse(field: segments) |
| 30 | # } |
| 31 | |
| 32 | # type ImageSegmentEvent { |
| 33 | # id: ID! |
| 34 | # state: EventState! |
| 35 | # node: ImageSegment! @hasInverse(field: events) |
| 36 | # } |
| 37 | |
| 38 | # extend type ImageSegment { |
| 39 | # events: [ImageSegmentEvent] @hasInverse(field: node) |
| 40 | # } |
| 41 | |
| 42 | # extend type Image { |
| 43 | # segments: [ImageSegment] @hasInverse(field: source) |
| 44 | # } |