Can someone help me with this ? <https://stackover...
# orm-help
t
Can someone help me with this ? https://stackoverflow.com/questions/54939113/how-to-use-same-generated-id-in-two-fields-prisma-graphql I need to use the generated id in another field when creating a node. Is it possible ?
j
I'm not sure how you would do that during the
create
, but what you can do is create the account, passing the empty string as argument for the parent, and upon successful creation update the account and set the parentId = id, or something along those lines.
t
This is the same logic I'm thinking if I can't achieve what I initially trying to do. Thanks