Skip to content

Commit

Permalink
fix: Backsupport to prevent major version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
NeedleInAJayStack committed Nov 10, 2023
1 parent c1cae12 commit eae17e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/GraphQL/Language/AST.swift
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,13 @@ public extension Node {
return nil
}

@available(*, deprecated, message: "Use set(value _: NodeResult?, key _: String)")
func set(value: Node?, key: String) {
return set(value: value.map { .node($0) }, key: key)
}

func set(value _: NodeResult?, key _: String) {
print("TODO: Should be implemented on each type!")
// This should be overridden by each type on which it should do something
}
}

Expand Down

0 comments on commit eae17e1

Please sign in to comment.