What is the current behavior?
Changing only the name of a relational field in types.graphql is not picked up as a change by graphcool deploy.
Original types:
type User {
id: ID! @isUnique
name: String!
posts: [Post!]! @relation(name: "UserOnPost")
}
type Post {
id: ID! @isUnique
title: String!
user: User! @relation(name: "UserOnPost")
}
Intermediate types:
type User {
id: ID! @isUnique
name: String!
posts: [Post!]! @relation(name: "UserOnPost")
}
type Post {
id: ID! @isUnique
title: String!
author: User! @relation(name: "UserOnPost")
}
Running graphcool deploy tells me the project definition is identical.
What is the expected behavior?
Either:
Or:
@rename.Not sure how much this overlaps with the migration concept, #627.
I think it is the same bug as here: https://github.com/graphcool/graphcool/issues/764
This issue has been moved to graphcool/graphcool-framework.
Can you mention the issue this is being tracked on? I need to be able to rename relations without resetting my production database.
Thanks!
Any update about this ?
I still face the problem with onDelete
Most helpful comment
Can you mention the issue this is being tracked on? I need to be able to rename relations without resetting my production database.
Thanks!