Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Support lua scripting to extend GraphQL server with a custom endpoint #40

Open
chipsenkbeil opened this issue Oct 5, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@chipsenkbeil
Copy link
Owner

Leverage rlua as an optional feature in vimwiki-server to provide the entrypoint into a custom GraphQL call. Because I don't think we can dynamically create GraphQL schemas, we will instead provide a single type (query, mutation, and maybe subscription?):

{
    lua_query(key: "some identifier", input: "some input") {
        key
        output
    }
}

If dynamic schemas were possible as described in async-graphql/async-graphql#30, then lua could be used to make the schemas, although from what was described there it would be a high performance cost.

@chipsenkbeil chipsenkbeil added the enhancement New feature or request label Oct 5, 2020
@chipsenkbeil chipsenkbeil added this to the 0.1 milestone Oct 5, 2020
@chipsenkbeil chipsenkbeil added this to To do in vimwiki-server via automation Oct 5, 2020
@chipsenkbeil chipsenkbeil modified the milestones: 0.2, backlog Oct 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
vimwiki-server
  
To do
Development

No branches or pull requests

1 participant