@naturzukunft in #GoActivityPub we support a Create activity with a list of objects as an Object.
However for your specific case, when creating an object which depends on another object, I usually create them using two separate Create activities.
I use this when I push a note that has many tags: first I create the tags (if not existing) and second the note with the tags.