Added a check on CompletableFuture for DataFetchers
@@ -18,12 +18,15 @@ type MyQueryType {
# All ids are generated
withList(firstName: String!, characters: [CharacterInput]!): [Character]
+
+
# error always returns an error! (used to check the error management)
error(errorLabel: String!): Character!
}
type AnotherMutationType {
createHuman(human: HumanInput!): Human!
+ createAllFieldCases(input: AllFieldCasesInput!): AllFieldCases!
}
type TheSubscriptionType {
@@ -60,7 +63,7 @@ interface Commented {
comments: [String]
}
-type allFieldCases {
+input AllFieldCasesInput {
id: ID!
name: String!
forname: String
@@ -73,6 +76,41 @@ type allFieldCases {
friends: [Human!]
}
+input AllFieldCasesWithIdSubtype {
+ id: ID!
+ name: String!
+}
+
+input AllFieldCasesWithoutIdSubtype {
+ name: String!
+}
+
+type AllFieldCases {
+ id: ID!
+ name: String!
+ forname(uppercase: Boolean = True, textToAppendToTheForname: String): String
+ age: Int!
+ nbComments: Int
+ comments: [String]
+ booleans: [Boolean!]
+ aliases: [String]!
+ planets: [String!]!
+ friends: [Human!]
+ oneWithIdSubType: AllFieldCasesWithIdSubtype
+ listWithIdSubTypes(uppercaseName: Boolean = True, textToAppendToTheForname: String): [AllFieldCasesWithIdSubtype]
+ oneWithoutIdSubType: AllFieldCasesWithoutIdSubtype
+ listWithoutIdSubTypes(uppercaseName: Boolean = True, textToAppendToTheForname: String): [AllFieldCasesWithoutIdSubtype]
+}
+
+type AllFieldCasesWithIdSubtype {
+ id: ID!
+ name: String!
+}
+
+type AllFieldCasesWithoutIdSubtype {
+ name: String!
+}
+
type Human implements Character, Commented {
id: ID!
name: String!
