prisma / specs

⚠ This repository is not actively used any more, please check out the Prisma Documentation for updated information on Prisma. ⚠
https://docs.prisma.io
87 stars 16 forks source link

Spec should specify that ID is always fetched #476

Closed Sytten closed 4 years ago

Sytten commented 4 years ago

While looking at the select community tool, it occured to me that relations where only working because of an undocumented behaviour. Basically no matter what select you use, the POJO objects that are returned always contain the ID. This is most likely a good thing but it is not what is written in the spec here: https://github.com/prisma/specs/blob/master/prisma-client-js/README.md#select

It should be added to clear up the potential confusion and tho enforce it as part of the contract.

Sytten commented 4 years ago

Seems like I was mistaken... please ignore.