What is a _MagicalBackRelation_?

prisma

#1

What is a _MagicalBackRelation_ when deploying a Prisma service? I’ve never seen (or at least noticed) them before, but when doing a fresh deploy today to a brand new server and service, I spotted them all over the added types, i.e.

 FollowerCountRecord (Type)
  + Created type `FollowerCountRecord`
  + Created field `id` of type `GraphQLID!`
  + Created field `version` of type `Int!`
  + Created field `followerCount` of type `Int!`
  + Created field `createdAt` of type `DateTime!`
  + Created field `updatedAt` of type `DateTime!`
  + Created field `proof` of type `Relation`
  + Created field `_MagicalBackRelation_UserFacebookFollowerCountRecord` of type `[Relation!]!`
  + Created field `_MagicalBackRelation_UserSnapchatFollowerCountRecord` of type `[Relation!]!`
  + Created field `_MagicalBackRelation_UserInstagramFollowerCountRecord` of type `[Relation!]!`

Did I do something wrong here, should I be worried?


#2

Hi Jesper,

As of I know those the tables that prisma internally uses to keep track of the relation it makes. I have also never seen such output from the cli. But you should be good and there should be no impact in the working of your application.

Maybe you can share a reproduction so that we may have a further look :slightly_smiling_face:
Also please share us the cli version and your prisma version


#3

This is an implementation detail that should not be exposed in the CLI, I’ve created an issue for it.