Skip to content

Commit c59603f

Browse files
feat: Converts Directive to class
This is necessary in order to compare object identifiers
1 parent 3158558 commit c59603f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GraphQL/Type/Directives.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public enum DirectiveLocation: String, Encodable {
2929
* Directives are used by the GraphQL runtime as a way of modifying execution
3030
* behavior. Type system creators will usually not create these directly.
3131
*/
32-
public struct GraphQLDirective {
32+
public final class GraphQLDirective {
3333
public let name: String
3434
public let description: String?
3535
public let locations: [DirectiveLocation]

0 commit comments

Comments
 (0)