HomePhabricator

[dagster-graphql] predefined queries

Authored by alangenfeld on Mon, Aug 5, 9:59 PM.

Description

[dagster-graphql] predefined queries

Summary:
Changes the dagster CLI to take one of three options to determine what graphql doc to exec:

  • -t for text
  • --file for file
  • -p for predefined query

Test Plan:

(dagenv36) ~/dagster/examples:named-queries$ dagster-graphql --file tmp.txt
{"data": {"__typename": "Query"}}
(dagenv36) ~/dagster/examples:named-queries$ dagster-graphql -p startPipelineExecution
{"errors": [{"locations": [{"column": 3, "line": 2}], "message": "Variable \"$executionParams\" of required type \"ExecutionParams!\" was not provided."}]}
(dagenv36) ~/dagster/examples:named-queries$ dagster-graphql -t {__typename}
{"data": {"__typename": "Query"}}

as well as updated test cases

Reviewers: #ft, schrockn

Reviewed By: #ft, schrockn

Subscribers: schrockn, max, sashank

Differential Revision: https://dagster.phacility.com/D766

Details

Committed
alangenfeldWed, Aug 7, 8:06 PM
Reviewer
Restricted Project
Differential Revision
D766: [dagster-graphql] predefined queries
Parents
R1:f7cb9b801b45: Rewrote airline demo readme
Branches
Unknown
Tags
Unknown