https://dagster.io/ logo
Title
s

sourabh upadhye

09/02/2021, 10:48 AM
Hi Dagster Team, We are trying to execute a query via graphqlclient in Python which requires us to format the string without "Double Quotes" for the "KEYS" in the query For EX :
queryArgs = f"""{{
            selector:{{
                repositoryName: "{repo_name}"
                repositoryLocationName: "{repo_loc}"
                pipelineName:"{pipeline_name}"}}
            runConfigData:{run_config}
            mode:"{mode_def}"
            }}"""
pipeline_execute = f"""mutation {{
                        launchPipelineExecution(executionParams:{queryArgs})
                        {{
                            __typename
                            ... on PipelineConfigValidationInvalid{{
                                errors{{
                                    message
                                }}
                            }}

                        }}
                        }}"""
print(pipeline_execute)
resp = json.loads(client.execute(pipeline_execute))