Skip to content

Commit

Permalink
Add inline documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari committed Sep 22, 2023
1 parent afd043a commit 848485d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apollo-ios-codegen/Sources/IR/IR+NamedFragment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ public class NamedFragment: Hashable, CustomDebugStringConvertible {
/// All of the fragments that are referenced by this fragment's selection set.
public let referencedFragments: OrderedSet<NamedFragment>

/// `True` if any selection set, or nested selection set, within the fragment contains any
/// fragment marked with the `@defer` directive.
public let hasDeferredFragments: Bool

/// All of the Entities that exist in the fragment's selection set,
Expand Down
3 changes: 2 additions & 1 deletion apollo-ios-codegen/Sources/IR/IR+Operation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public class Operation {
/// All of the fragments that are referenced by this operation's selection set.
public let referencedFragments: OrderedSet<NamedFragment>

/// `True` if the selection set contains any fragments marked with the `@defer` directive.
/// `True` if any selection set, or nested selection set, within the operation contains any
/// fragment marked with the `@defer` directive.
public let hasDeferredFragments: Bool

init(
Expand Down
2 changes: 2 additions & 0 deletions apollo-ios/Sources/ApolloAPI/GraphQLOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public extension GraphQLOperation {
return nil
}

/// `True` if any selection set, or nested selection set, within the operation contains any
/// fragment marked with the `@defer` directive.
static var hasDeferredFragments: Bool {
false
}
Expand Down

0 comments on commit 848485d

Please sign in to comment.