I'm trying return the id (which is a cuid that gets generated in the database) of an addProduct mutation back to the client. I get undefined if I fire the mutation once. Then I get the result of the first mutation if I fire the mutation a second time.
Do I need a separate query to search for the the newly created item or is there a way to get the actual id of the first mutation upon firing the first mutation?