How do I restrict GraphQL access with Basic Auth?
I got it!
I needed to add
$route-&gt;setRequirements(['_user_is_logged_in' =&gt; 'TRUE']);

...And then do the curl request with the username and password.