How to get the invoice ID via the graphQL API?

Hey there,

we are trying to automate some accounting activites and for that purpose we want to do the following two things:

  1. Get the ID of the invoice for an order (if there exists one). e.g. INV-DE-38

  2. Get the PDF invoice that was created for an order

I was not able to find any field in the GraphQL documentation on how to get the first one.

Greetings

Philip