The type of a Document cannot be updated with ==type

In v12 I can do this
await actor.update({[`type`]: "npc"})
await actor.update({[`type`]: "npc"})
In v13 I get the errors which suggest using == or recursive: false. Neither of which seems to work. What is the proper way to change a document type in v13?
No description
2 Replies
Aaron
AaronOP5mo ago
No description
Aaron
AaronOP5mo ago
Nevermind I was able to get
await actor.update({[`type`]: "npc", [`==system`]: actor.system}, {recursive: false})
await actor.update({[`type`]: "npc", [`==system`]: actor.system}, {recursive: false})
to work

Did you find this page helpful?