Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Reduce Generated Schema Types #601

Merged
merged 8 commits into from
Feb 18, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Deprecation update
  • Loading branch information
BobaFetters committed Feb 18, 2025
commit ab5594bb31e9f0166e91419895c9856ce8d553a6
10 changes: 7 additions & 3 deletions apollo-ios/Sources/ApolloAPI/SchemaTypes/Object.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,21 @@ public struct Object: Hashable, Sendable {
keyFields: [String]? = nil
) {
self.typename = typename
self.implementedInterfaces = implementedInterfaces
self._implementedInterfaces = implementedInterfaces
if keyFields?.isEmpty == false {
self.keyFields = keyFields
} else {
self.keyFields = nil
}
}

private let _implementedInterfaces: [Interface]

/// A list of the interfaces implemented by the type.
/// Deprecated: This property will be removed in version 2.0. To check if an Object implements an interface please use the 'implements(_)' function.
public let implementedInterfaces: [Interface]
@available(*, deprecated, message: "This property will be removed in version 2.0. To check if an Object implements an interface please use the 'implements(_)' function.")
public var implementedInterfaces: [Interface] {
return _implementedInterfaces
}

/// The name of the type.
///
Expand Down
Loading