Skip to content

[FEATURE REQUEST] allow basic REPL like scripting #118

@marcosnils

Description

@marcosnils

Hey there, congrats for gq, it's really an awesome tool.

Today thinking about the possibilities of gq, I was dreaming with the idea of allowing some sort of basic scripting. A very basic example of what I'd like to do in gq would be something like this:

gql> let repo = query {
  repositories(ref: "foo/foo")
} <CR>

mutation {
  createIssue(ref: "$repo.ref") {
   url
  }
} <CR>

# get the URL of the repo from the mutation response.

The idea would be that without too much complexity, have the ability of wiring some javascript code to prototype a simple flow of calling multiple graphql queries and mutations.

thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions