File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/main/kotlin/graphql/kickstart/tools Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ internal class RootTypeInfo private constructor(
1717 const val DEFAULT_QUERY_NAME = " Query"
1818 const val DEFAULT_MUTATION_NAME = " Mutation"
1919 const val DEFAULT_SUBSCRIPTION_NAME = " Subscription"
20- val DEFAULT_DESCRIPTION : String? = null // According to the GraphQL Specification description should be a string or `null`
2120
2221 fun fromSchemaDefinitions (definitions : List <SchemaDefinition >): RootTypeInfo {
2322 val queryType = definitions.lastOrNull()?.operationTypeDefinitions?.find { it.name == " query" }?.typeName
@@ -32,7 +31,7 @@ internal class RootTypeInfo private constructor(
3231 fun getQueryName () = queryType?.name ? : DEFAULT_QUERY_NAME
3332 fun getMutationName () = mutationType?.name ? : DEFAULT_MUTATION_NAME
3433 fun getSubscriptionName () = subscriptionType?.name ? : DEFAULT_SUBSCRIPTION_NAME
35- fun getDescription () = description?.content ? : DEFAULT_DESCRIPTION
34+ fun getDescription () = description?.content
3635
3736 fun isMutationRequired () = mutationType != null
3837 fun isSubscriptionRequired () = subscriptionType != null
You can’t perform that action at this time.
0 commit comments