Hey guys, I have the following subscription ``` Su...
# orm-help
a
Hey guys, I have the following subscription
Copy code
Subscription: {
    userUpdate: {
      subscribe: async (parent, args, context) => {
        const { userId } = args;
        return context.prisma.$subscribe
          .user({
            id: userId,
            mutation_in: ["UPDATED"]
          })
          .node();
      },
      resolve: payload => {
        return payload;
      }
    }
  }
Copy code
subscription { 
	userUpdate(userId:"5c0b97f4be07770009dad41f") { 
  	id 
    posts { 
    	id 
    }
  }
}
The problem is that the subscription doesn't resolve relationship fields. For example
posts
returns null. Is this intended behavior or am I missing something? I'm using docker with Prisma 1.22 and the mongo db connector.