Skip to content

Commit

Permalink
fix: Make interfaces property optional in the Introspection Query
Browse files Browse the repository at this point in the history
Make the `interfaces` property of `ObjectType` and `InterfaceType` optional
  • Loading branch information
maticzav authored Feb 9, 2022
2 parents 716973b + 57bf76d commit b1fad45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/GraphQLAST/Type.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public struct ObjectType: NamedTypeProtocol, Decodable, Equatable {
public let description: String?

public let fields: [Field]
public let interfaces: [InterfaceTypeRef]
public let interfaces: [InterfaceTypeRef]?
}

public struct InterfaceType: NamedTypeProtocol, Decodable, Equatable {
Expand All @@ -59,7 +59,7 @@ public struct InterfaceType: NamedTypeProtocol, Decodable, Equatable {
public let description: String?

public let fields: [Field]
public let interfaces: [InterfaceTypeRef]
public let interfaces: [InterfaceTypeRef]?
public let possibleTypes: [ObjectTypeRef]
}

Expand Down

0 comments on commit b1fad45

Please sign in to comment.