const contactPromise = prisma.contact({authSysId});
const userPromise = contactPromise.user();
Promise.all([contactPromise, userPromise])
.then((value: [Contact, User]) => {
I expected the promise to resolve as one user and one contact. However, value has the same user record:
(2) [{…}, {…}]
0: createdAt: "2018-11-22T235844.160Z"id: "cjot9cqta002a0a34clfbckop"isAdmin: falsename: ""updatedAt: "2018-11-22T235844.160Z"userAttributes: null__proto__:
Object1: createdAt: "2018-11-22T235844.160Z"id: "cjot9cqta002a0a34clfbckop"isAdmin: falsename: ""updatedAt: "2018-11-22T235844.160Z"userAttributes: null__proto__: Objectlength: 2__proto__: Array(0)
Am I doing something wrong or is this a bug?