Hello kennedy285,
If I'm understanding you right, you're missing photos after transferring data from your old iPhone to your new one. I know how important photos are, and I'm happy to help you resolve this.
Was your data restored to your new iPhone via an iCloud backup, or was it synced to your iPhone from iCloud? If an iCloud backup was restored to your new iPhone and the only photos you see are photos you previously deleted, it's possible the backup was not very current. However, if you have iCloud Photos enabled on your old phone those new photos should be stored in iCloud and sync to your new iPhone. In this case you will want to try out the steps here: Get help with missing photos.
If you still have access to your old iPhone, you can create a new backup of that iPhone using iCloud or iTunes, and then restore the new iPhone from that backup. Please note that any new data you've added to your iPhone XR would be erased since everything on that phone would be replaced with the data in the backup. Here's steps on how to back up and restore:
How to back up your iPhone, iPad, and iPod touch
Restore your iPhone, iPad, or iPod touch from a backup
Thanks for using Apple Support Communities.
Take care.