atito
02/15/2018, 6:25 AMtype User {
id: ID! @unique
followers: [User!]!
following: [User!]!
}
But I believe that is not efficient or how prisma will deal with something like that?
thanks in advanceandre
02/15/2018, 8:53 AMfollowers: [User!]! @relation(name: "UserFollowers")
follows: [User!]! @relation(name: "UserFollows")
and you have to update to prisma@beta
. There was a problem with self-relations: https://github.com/graphcool/prisma/issues/1609andre
02/15/2018, 8:54 AMfollow
and unfollow
mutation can look like.atito
02/15/2018, 5:00 PMandre
02/15/2018, 5:09 PMatito
02/15/2018, 5:42 PMnpm i -g prisma@beta
and prisma local upgrade
- prisma deploy
Now updateUser follower working but updateUser following not workingatito
02/15/2018, 5:43 PMprisma version
-> prisma/1.3.0-beta.1 (darwin-x64) node-v8.4.0
prisma vluster list
-> name version endpoint
āāāāāāāāāā āāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāāāāāāā
local 1.3-beta-9 <http://localhost:4466/cluster>
prisma-eu1 1.2.3 <https://eu1.prisma.sh/cluster>
prisma-us1 1.2.3 <https://us1.prisma.sh/cluster>
and I'm using local clusterandre
02/15/2018, 5:44 PMatito
02/15/2018, 8:46 PMatito
02/15/2018, 9:07 PMprisma.yml
and that creates everything from scratch and it worked
Anyway, thank you very much @andre for following up with me