Skip to content

Commit

Permalink
override isMutable to make every generated model mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
nuke-dash committed May 6, 2024
1 parent 4058ba1 commit f918c47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extension IR.Definition {
"\(config.schemaNamespace.firstUppercased).\(if: isMutable, "Mutable")SelectionSet"
}

var isMutable: Bool { self.isLocalCacheMutation }
var isMutable: Bool { true }

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct SelectionSetTemplate {

private let nameCache: SelectionSetNameCache

var isMutable: Bool { definition.isMutable }
var isMutable: Bool { true }

init(
definition: IR.Definition,
Expand Down

0 comments on commit f918c47

Please sign in to comment.