How to pass a field value as contextual filter argument using Twig Tweak drupal_view? In Drupal 8, I'm using Twig Tweak to embed a view. I have a contextual filter set to one of the node's fields, field_project_id. If I use a literal for the third argument, it works. If I try to reference the value of the current node's project ID, no luck.

Works:  

{{ drupal_view('my_view', 'block_1', '2011-40054-000') }}  


Doesn't work:  

{{ drupal_view('my_view', 'block_1', content.field_project_id) }},  
{{ drupal_view('my_view', 'block_1', content.field_project_id.value) }},  
{{ drupal_view('my_view', 'block_1', content.field_project_id.0) }},  
{{ drupal_view('my_view', 'block_1', content.field_project_id.0.value) }},  


etc.

What's the proper way to do this?
First of all check drupal_view implementation but I think that the arguments parameter (contextual filters) is an array, though the function wraps scalars into an array you should pass an array (robustness). Said that everything looks fine in your template perhaps you should do {{ vardumper(content) }}  to see what actually is getting to your template variable. In order to use the vardumper function you need to install the VarDumper module.