I'm very much misunderatanding something with apol...
# prisma-whats-new
v
I'm very much misunderatanding something with apollo server (I'm not quite sure of the exact library this syntax come from): Assume a Request model which has a many-to-one relationship named
kiosk
.
Copy code
const existingRequest = await ctx.db.query.request({ where: { id } });

// only the base model is available here, not relationships:
existingRequest.kiosk // undefined
1. Which syntax does this come from? 2. Is there any doc for this syntax?
m
You’ve got to pass in the
info
as a second argument of your
request
.
v
oh my god thank you so much 🙏
🎉 1