Hello friends, how do I connect to the graphql api...
# ask-community
q
Hello friends, how do I connect to the graphql api to launch jobs when I use Dagster Cloud? I have tried
Copy code
from dagster_graphql import DagsterGraphQLClient

client = DagsterGraphQLClient("dagit.dagster.OUR_COMPANY_NAME")
but it doesn't seem to work. Also shouldn't there be any token or something for authorization?
🤖 1
r
Here’s a github discussion that shows you how to do this: https://github.com/dagster-io/dagster/discussions/7772
❤️ 1
q
Thanks @rex! curious what the difference is between
repository_location_name
and
repository_name
in
client.submit_job_execution
is?
This worked @rex. Thank you so much!