Skip to content

Relation fields on different objects not in patch are mutating with PatchSchema (and erroring) #3074

@AndrewSisley

Description

@AndrewSisley

e.g.

type Contact {
  email: String
  player: [Player] @relation(name: "playerContact")
} 

type Player {
  authId: String
  characterName: String
  email: String
  refCode: String
  contact: Contact @primary @relation(name: "playerContact")
}

http://localhost:9181/api/v0/schema
{"Patch":"[{\"op\":\"add\",\"path\":\"/Player/Fields/-\",\"value\":{\"Name\":\"test1\",\"Kind\":11}}]","SetAsDefaultVersion":true}
Error: mutating an existing field is not supported. ProposedName: contact

Metadata

Metadata

Assignees

Labels

area/schemaRelated to the schema systembugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions