How to know if a package is installed by user or as dependency in dnf5?

as the title implies; when i use dnf --assumeno mark dependency hyprland-devel , it outputs this:

Package                                                   Arch          Version                                                   Repository                            Size
Changing reason:
 hyprland-devel                                           x86_64        0.49.0-1.fc42                                             @System                            1.1 MiB
   User -> Dependency                                                                                                                                                       

Transaction Summary:
 Changing reason:    1 package

After this operation, 0 B extra will be used (install 0 B, remove 0 B).
Operation aborted by the user.

I was wondering is their a way to know if the package is installed as a dependency or a user installed? dnf repoquery --userinstalled hyprland-devel but the output is User or Dependency instead of the name of the package