Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions Sources/SwiftGraphQL/Document/Argument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public struct Argument: Hashable {

let value: AnyCodable?

/*
/**
NOTE:
We use an internal VariableEncoder structure that is
a chiseled version of Swift's JSONEncoder. The main difference
Expand Down Expand Up @@ -59,7 +59,7 @@ public struct Argument: Hashable {

// MARK: Hashable Value

/*
/**
We use hashable value struct to make sure that fields with same values
but different paths or names don't collide in the variables.

Expand Down
6 changes: 3 additions & 3 deletions Sources/SwiftGraphQL/Document/Field.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ public enum GraphQLField {
/// - Note: Fragments don't have alias.
public var alias: String? {
switch self {
case let .leaf(name, parent, arguments),
let .composite(name, parent, _, arguments, _):
return "\(name.camelCasePreservingSurroundingUnderscores)\(parent.camelCasePreservingSurroundingUnderscores)_\(arguments.hash)"
case let .leaf(name, parent, _),
let .composite(name, parent, _, _, _):
return "\(name.camelCasePreservingSurroundingUnderscores)\(parent.pascalCase)"
case .fragment:
return nil
}
Expand Down