7
7
[source,graphql,schema=true]
8
8
----
9
9
interface HasMovies { movies:[Movie] }
10
+ enum MovieType { documentary, action }
10
11
type Person0 { name: String, born: _Neo4jTime, location: _Neo4jPoint }
11
12
type Person1 { name: String, born: _Neo4jDate }
12
13
type Person2 { name: String, age: Int, born: _Neo4jDateTime }
13
14
type Person3 { name: String!, born: _Neo4jLocalTime }
14
15
type Person4 { id:ID!, name: String, born: _Neo4jLocalDateTime }
15
16
type Person5 implements HasMovies { id:ID!, movies:[Movie] @relation(name: "LIKES")}
16
- type Movie { id:ID!, publishedBy: Publisher @relation(name: "PUBLISHED_BY")}
17
+ type Movie { id:ID!, movieType: MovieType, publishedBy: Publisher @relation(name: "PUBLISHED_BY")}
17
18
type Publisher { name:ID! }
18
19
type Knows0 @relation(name:"KNOWS", from: "source", to: "knows"){
19
20
id: ID!
@@ -96,14 +97,15 @@ type Knows4 {
96
97
97
98
type Movie {
98
99
id: ID!
100
+ movieType: MovieType
99
101
publishedBy: Publisher
100
102
}
101
103
102
104
type Mutation {
103
105
addMoviePublishedBy(id: ID!, publishedBy: ID!): Movie!
104
106
addPerson5Movies(id: ID!, movies: [ID!]!): Person5!
105
107
createKnows4(json: DynamicProperties, knows_id: ID!, source_id: ID!): Knows4!
106
- createMovie(id: ID!): Movie!
108
+ createMovie(id: ID!, movieType: MovieType ): Movie!
107
109
createPerson1(born: _Neo4jDateInput, name: String): Person1!
108
110
createPerson2(age: Int, born: _Neo4jDateTimeInput, name: String): Person2!
109
111
createPerson3(born: _Neo4jLocalTimeInput, name: String!): Person3!
@@ -128,9 +130,11 @@ type Mutation {
128
130
deletePublisher(name: ID!): Publisher
129
131
mergeKnows0(id: ID!, json: DynamicProperties): Knows0!
130
132
mergeKnows4(_id: ID!, json: DynamicProperties): Knows4!
133
+ mergeMovie(id: ID!, movieType: MovieType): Movie!
131
134
mergePerson4(born: _Neo4jLocalDateTimeInput, id: ID!, name: String): Person4!
132
135
updateKnows0(id: ID!, json: DynamicProperties): Knows0
133
136
updateKnows4(_id: ID!, json: DynamicProperties): Knows4
137
+ updateMovie(id: ID!, movieType: MovieType): Movie
134
138
updatePerson4(born: _Neo4jLocalDateTimeInput, id: ID!, name: String): Person4
135
139
}
136
140
@@ -274,6 +278,11 @@ type _Neo4jTime {
274
278
timezone: String
275
279
}
276
280
281
+ enum MovieType {
282
+ action
283
+ documentary
284
+ }
285
+
277
286
enum RelationDirection {
278
287
BOTH
279
288
IN
@@ -283,6 +292,8 @@ enum RelationDirection {
283
292
enum _MovieOrdering {
284
293
id_asc
285
294
id_desc
295
+ movieType_asc
296
+ movieType_desc
286
297
}
287
298
288
299
enum _Person0Ordering {
@@ -381,7 +392,7 @@ schema {
381
392
}
382
393
383
394
interface HasMovies {
384
- movies(filter: _MovieFilter, first: Int, id: ID, id_contains: ID, id_ends_with: ID, id_gt: ID, id_gte: ID, id_in: [ID!], id_lt: ID, id_lte: ID, id_matches: ID, id_not: ID, id_not_contains: ID, id_not_ends_with: ID, id_not_in: [ID!], id_not_starts_with: ID, id_starts_with: ID, offset: Int, orderBy: [_MovieOrdering!]): [Movie]
395
+ movies(filter: _MovieFilter, first: Int, id: ID, id_contains: ID, id_ends_with: ID, id_gt: ID, id_gte: ID, id_in: [ID!], id_lt: ID, id_lte: ID, id_matches: ID, id_not: ID, id_not_contains: ID, id_not_ends_with: ID, id_not_in: [ID!], id_not_starts_with: ID, id_starts_with: ID, movieType: MovieType, movieType_in: [MovieType!], movieType_not: MovieType, movieType_not_in: [MovieType!], offset: Int, orderBy: [_MovieOrdering!]): [Movie]
385
396
}
386
397
387
398
type Knows0 {
@@ -406,6 +417,7 @@ type Knows4 {
406
417
407
418
type Movie {
408
419
id: ID!
420
+ movieType: MovieType
409
421
publishedBy: Publisher
410
422
}
411
423
@@ -439,7 +451,7 @@ type Person4 {
439
451
440
452
type Person5 implements HasMovies {
441
453
id: ID!
442
- movies(filter: _MovieFilter, first: Int, id: ID, id_contains: ID, id_ends_with: ID, id_gt: ID, id_gte: ID, id_in: [ID!], id_lt: ID, id_lte: ID, id_matches: ID, id_not: ID, id_not_contains: ID, id_not_ends_with: ID, id_not_in: [ID!], id_not_starts_with: ID, id_starts_with: ID, offset: Int, orderBy: [_MovieOrdering!]): [Movie]
454
+ movies(filter: _MovieFilter, first: Int, id: ID, id_contains: ID, id_ends_with: ID, id_gt: ID, id_gte: ID, id_in: [ID!], id_lt: ID, id_lte: ID, id_matches: ID, id_not: ID, id_not_contains: ID, id_not_ends_with: ID, id_not_in: [ID!], id_not_starts_with: ID, id_starts_with: ID, movieType: MovieType, movieType_in: [MovieType!], movieType_not: MovieType, movieType_not_in: [MovieType!], offset: Int, orderBy: [_MovieOrdering!]): [Movie]
443
455
}
444
456
445
457
type Publisher {
@@ -452,7 +464,7 @@ type Query {
452
464
knows0(filter: _Knows0Filter, first: Int, id: ID, id_contains: ID, id_ends_with: ID, id_gt: ID, id_gte: ID, id_in: [ID!], id_lt: ID, id_lte: ID, id_matches: ID, id_not: ID, id_not_contains: ID, id_not_ends_with: ID, id_not_in: [ID!], id_not_starts_with: ID, id_starts_with: ID, offset: Int, orderBy: [_Knows0Ordering!]): [Knows0!]!
453
465
knows1(filter: _Knows1Filter, first: Int, id: ID, id_contains: ID, id_ends_with: ID, id_gt: ID, id_gte: ID, id_in: [ID!], id_lt: ID, id_lte: ID, id_matches: ID, id_not: ID, id_not_contains: ID, id_not_ends_with: ID, id_not_in: [ID!], id_not_starts_with: ID, id_starts_with: ID, offset: Int, orderBy: [_Knows1Ordering!]): [Knows1!]!
454
466
knows4(_id: ID, filter: _Knows4Filter, first: Int, offset: Int, orderBy: [_Knows4Ordering!]): [Knows4!]!
455
- movie(filter: _MovieFilter, first: Int, id: ID, id_contains: ID, id_ends_with: ID, id_gt: ID, id_gte: ID, id_in: [ID!], id_lt: ID, id_lte: ID, id_matches: ID, id_not: ID, id_not_contains: ID, id_not_ends_with: ID, id_not_in: [ID!], id_not_starts_with: ID, id_starts_with: ID, offset: Int, orderBy: [_MovieOrdering!]): [Movie!]!
467
+ movie(filter: _MovieFilter, first: Int, id: ID, id_contains: ID, id_ends_with: ID, id_gt: ID, id_gte: ID, id_in: [ID!], id_lt: ID, id_lte: ID, id_matches: ID, id_not: ID, id_not_contains: ID, id_not_ends_with: ID, id_not_in: [ID!], id_not_starts_with: ID, id_starts_with: ID, movieType: MovieType, movieType_in: [MovieType!], movieType_not: MovieType, movieType_not_in: [MovieType!], offset: Int, orderBy: [_MovieOrdering!]): [Movie!]!
456
468
person1(born: _Neo4jDateInput, born_in: [_Neo4jDateInput!], born_not: _Neo4jDateInput, born_not_in: [_Neo4jDateInput!], filter: _Person1Filter, first: Int, name: String, name_contains: String, name_ends_with: String, name_gt: String, name_gte: String, name_in: [String!], name_lt: String, name_lte: String, name_matches: String, name_not: String, name_not_contains: String, name_not_ends_with: String, name_not_in: [String!], name_not_starts_with: String, name_starts_with: String, offset: Int, orderBy: [_Person1Ordering!]): [Person1!]!
457
469
person2(age: Int, age_gt: Int, age_gte: Int, age_in: [Int!], age_lt: Int, age_lte: Int, age_not: Int, age_not_in: [Int!], born: _Neo4jDateTimeInput, born_in: [_Neo4jDateTimeInput!], born_not: _Neo4jDateTimeInput, born_not_in: [_Neo4jDateTimeInput!], filter: _Person2Filter, first: Int, name: String, name_contains: String, name_ends_with: String, name_gt: String, name_gte: String, name_in: [String!], name_lt: String, name_lte: String, name_matches: String, name_not: String, name_not_contains: String, name_not_ends_with: String, name_not_in: [String!], name_not_starts_with: String, name_starts_with: String, offset: Int, orderBy: [_Person2Ordering!]): [Person2!]!
458
470
person3(born: _Neo4jLocalTimeInput, born_in: [_Neo4jLocalTimeInput!], born_not: _Neo4jLocalTimeInput, born_not_in: [_Neo4jLocalTimeInput!], filter: _Person3Filter, first: Int, name: String, name_contains: String, name_ends_with: String, name_gt: String, name_gte: String, name_in: [String!], name_lt: String, name_lte: String, name_matches: String, name_not: String, name_not_contains: String, name_not_ends_with: String, name_not_in: [String!], name_not_starts_with: String, name_starts_with: String, offset: Int, orderBy: [_Person3Ordering!]): [Person3!]!
@@ -560,6 +572,11 @@ type _Neo4jTime {
560
572
timezone: String
561
573
}
562
574
575
+ enum MovieType {
576
+ action
577
+ documentary
578
+ }
579
+
563
580
enum RelationDirection {
564
581
BOTH
565
582
IN
@@ -588,6 +605,8 @@ enum _Knows4Ordering {
588
605
enum _MovieOrdering {
589
606
id_asc
590
607
id_desc
608
+ movieType_asc
609
+ movieType_desc
591
610
}
592
611
593
612
enum _Person0Ordering {
@@ -803,6 +822,10 @@ input _MovieFilter {
803
822
id_not_in: [ID]
804
823
id_not_starts_with: ID
805
824
id_starts_with: ID
825
+ movieType: MovieType
826
+ movieType_in: [MovieType]
827
+ movieType_not: MovieType
828
+ movieType_not_in: [MovieType]
806
829
"Filters only those `Movie` for which the `publishedBy`-relationship matches this filter. If `null` is passed to this field, only those `Movie` will be filtered which has no `publishedBy`-relations"
807
830
publishedBy: _PublisherFilter
808
831
"@deprecated Use the `publishedBy_not`-field"
@@ -1155,14 +1178,15 @@ type Knows4 {
1155
1178
1156
1179
type Movie {
1157
1180
id: ID!
1181
+ movieType: MovieType
1158
1182
publishedBy: Publisher
1159
1183
}
1160
1184
1161
1185
type Mutation {
1162
1186
addMoviePublishedBy(id: ID!, publishedBy: ID!): Movie!
1163
1187
addPerson5Movies(id: ID!, movies: [ID!]!): Person5!
1164
1188
createKnows4(json: DynamicProperties, knows_id: ID!, source_id: ID!): Knows4!
1165
- createMovie(id: ID!): Movie!
1189
+ createMovie(id: ID!, movieType: MovieType ): Movie!
1166
1190
createPerson5(id: ID!): Person5!
1167
1191
createPublisher(name: ID!): Publisher!
1168
1192
"Deletes Knows0 and returns the type itself"
@@ -1181,8 +1205,10 @@ type Mutation {
1181
1205
deletePublisher(name: ID!): Publisher
1182
1206
mergeKnows0(id: ID!, json: DynamicProperties): Knows0!
1183
1207
mergeKnows4(_id: ID!, json: DynamicProperties): Knows4!
1208
+ mergeMovie(id: ID!, movieType: MovieType): Movie!
1184
1209
updateKnows0(id: ID!, json: DynamicProperties): Knows0
1185
1210
updateKnows4(_id: ID!, json: DynamicProperties): Knows4
1211
+ updateMovie(id: ID!, movieType: MovieType): Movie
1186
1212
}
1187
1213
1188
1214
type Person0 {
@@ -1325,6 +1351,11 @@ type _Neo4jTime {
1325
1351
timezone: String
1326
1352
}
1327
1353
1354
+ enum MovieType {
1355
+ action
1356
+ documentary
1357
+ }
1358
+
1328
1359
enum RelationDirection {
1329
1360
BOTH
1330
1361
IN
@@ -1334,6 +1365,8 @@ enum RelationDirection {
1334
1365
enum _MovieOrdering {
1335
1366
id_asc
1336
1367
id_desc
1368
+ movieType_asc
1369
+ movieType_desc
1337
1370
}
1338
1371
1339
1372
enum _Person0Ordering {
0 commit comments