I am trying to accomplish targeting but wondering if there is a way to combine these two? I took a look around and in the Craft 3 docs but I am a bit turned around on this, really would appreciate some help with it.
{% set parts = craft.categories.group('part').slug( urlSlug2 ) %}
{% set models = craft.categories.group('model').slug( urlSlug3 ) %}
{% set entries1 = craft.entries.section('flightcompany').relatedTo({
targetElement: parts,
field: 'partsModels.part'
}).limit(5).all() %}
{% set entries2 = craft.entries.section('flightcompany').relatedTo({
targetElement: models,
field: 'partsModels.model'
}).limit(5).all() %}