In my database I have two fields that uniquely identify a database record, id and publicId. Users of my api should only be able to use publicId for accessing a record so I need to validate that id is not in the select object that users provide.
Currently we can only omit a field from the model and input schemas. It would be nice if we had a "select" option too.
In my database I have two fields that uniquely identify a database record,
id
andpublicId
. Users of my api should only be able to usepublicId
for accessing a record so I need to validate thatid
is not in theselect
object that users provide.Currently we can only omit a field from the
model
andinput
schemas. It would be nice if we had a "select" option too.