hi guys, thanks for time i need little help anyone...
# orm-help
e
hi guys, thanks for time i need little help anyone can give me suggestion about return type function here, i can use
'Customer & { addresses: Address[]; user: User; }'
but i think not flexible if have any change relation hopefully can use type like
Prisma.CustomerInclude
but give error.
Type 'Customer & { addresses: Address[]; user: User; }' is not assignable to type 'CustomerInclude'.
thanks anyone help
n
Hey 👋 You are looking for Using variations of generated model type This guide describes the exact scenario which you are facing. Can you have a look at this and see if this solves it for you?
e
thanks a lot @Nurul will check it asap
👍 1
n
Sure! Let me know if you face any issues