Q: At which stage in the RP can I create a node th...
# prisma-whats-new
a
Q: At which stage in the RP can I create a node that references the newly created node? Only in
TRANSFORM_PAYLOAD
?
Background: I want to create a child node server-side when a node of a certain Type is created, and be able to query that right away:
Copy code
mutation {
    createGame {
       id
       gameState {
          status
          nextTurn
          ...
       }
    }
}
the
GameState
node would be created on the server, but I'm trying to figure out where I can do that, and how I can get it into the result
n
yes, only in
TRANSFORM_PAYLOAD
.
👍🏻 1