See #17842 for an example of this:
The problem is that this is invalid in the parser:
But this works successfully:
However, in PuppetDB we are more strict and the second case fails with an invalid relationship error - we can fix the error message on our end, but this still shouldn't be allowed I believe.
The question is - should this be fixed in the internals so people tapping resource creation (like within create_resources) get an error or something else? Or perhaps fixed in create_resources? Its basically just an inconsistency between that methodology and what the parser enforces.