Hey! Random question. Is there a way to set a defa...
# prisma-client
t
Hey! Random question. Is there a way to set a default selection of fields returned from an object? For example. For example if I donโ€™t want to return an
account_number
on a user unless I specifically ask for it.
r
@Taylor Preston ๐Ÿ‘‹ You can use
select
and specify default fields as an object and use those in your queries.
๐Ÿค˜ 1
t
Thanks man! I was thinking there might be a way to define it on the schema, but that works just as well. ๐Ÿค˜
๐Ÿ‘ 1