Dql upsert @id instead of ID!

Duh. Thank you!

Now I have to map the @hasInverse so Userposts also contains the new Post id… (since apparently this is not done automatically with rdf):

Can this be done with one upsert? I need to get the new post id correct? I imagine there is standard practice to deal with this situation…

upsert {
    query {
      q(func: eq(User.email, "${args.email}")) {
        v as uid
      }
    }
    mutation {
      set { 
        _:blank-0 <Post.name> "${args.name}" .
        _:blank-0 <Post.description> "${args.description}" .
        _:blank-0 <Post.user> uid(v) .
        _:blank-0 <Post.published> "${args.published}" .
        _:blank-0 <dgraph.type> "Post" .
        _:uid(v) <User.posts> "GET THIS NEW ID" .
      }
    }
  }