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
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
@@ -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 {
@@ -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]
}

1 comment on commit b1fad45

@vercel
Copy link

@vercel vercel bot commented on b1fad45 Feb 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.