Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Org-mode Babel Support for graphql execution #39

Open
w08r opened this issue Aug 24, 2020 · 3 comments
Open

Org-mode Babel Support for graphql execution #39

w08r opened this issue Aug 24, 2020 · 3 comments

Comments

@w08r
Copy link

w08r commented Aug 24, 2020

It would be useful to be able to use graphql mode within org files. Such that, given a source block like this:

#+BEGIN_SRC graphql :endpoint my-first-great-endpoint
mutation {
  createFoo() {}
}
#+END_SRC

I can then execute that block and produce results inline, as per other org-babel language integrations.

There are some things to think about

  • endpoint select in header arguments
  • passing grapgql variables in, also through header args maybe
@w08r
Copy link
Author

w08r commented Aug 24, 2020

Just looking at #38 ... I'd be happy to separate the above out into a separate lib if you think that makes more sense; but initially thought it would be a great extra for this package...

@davazp
Copy link
Owner

davazp commented Aug 24, 2020

I think this makes sense for this package itself 👍 . Unlike that issue, this is not exposing functionality to arbitrary new libraries, but just extending org-mode.

@tecosaur
Copy link

tecosaur commented Nov 5, 2020

Just a little comment: I know some other packages (e.g. rustic) take the approach of bringing babel support with the general language package. IMO this makes a fair bit of sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants