Skip to content

Commit ae09f40

Browse files
authored
Remove warning (#6092)
1 parent 31e9cff commit ae09f40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/apollo-ast/src/commonMain/kotlin/com/apollographql/apollo/ast/introspection/introspection_reader.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@ private class GQLDocumentBuilder(private val introspectionSchema: IntrospectionS
462462
}
463463

464464
return GQLSchemaDefinition(
465-
description = description.unwrapDescription("schema"),
465+
// Older versions of GraphQL do not have a description, do not warn on this
466+
description = description.getOrNull(),
466467
directives = emptyList(),
467468
rootOperationTypeDefinitions = rootOperationTypeDefinitions
468469
)

0 commit comments

Comments
 (0)