Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AndrewSisley opened this issue Sep 25, 2024 · 0 comments · Fixed by #3077
Assignees
Labels
area/schema Related to the schema system bug Something isn't working
Milestone

Comments

@AndrewSisley
Copy link
Contributor

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
@AndrewSisley AndrewSisley added bug Something isn't working area/schema Related to the schema system labels Sep 25, 2024
@AndrewSisley AndrewSisley added this to the DefraDB v0.14 milestone Sep 25, 2024
@AndrewSisley AndrewSisley self-assigned this Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/schema Related to the schema system bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant