I noticed when prisma deploy locally, the magical ...
# orm-help
a
I noticed when prisma deploy locally, the magical back relation functions exist but when I prisma deploy to my service, the magical back relations get removed. Is this expected behavior and if so, is there a way to use magical back relation?
d
Can you please specify how you ran into the magical relations? Is your issue related to this? https://github.com/prisma/prisma/issues/2693
a
I’m not sure if my issue is related to this. I’m trying to use the magical relations in one of my resolvers, When I prisma deploy locally, the magical back relations are available and work fine but when I prisma deploy to the server, they disappear and the resolvers break. Is this expected behavior?
d
Magic relation API was exposed inadvertently, correct solution is to add the respective relation to the datamodel, deploy the service and use the appropriate filter from the generated schema.