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

A GraphQL Extension #2196

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

k9ert
Copy link
Collaborator

@k9ert k9ert commented Feb 11, 2023

A GraphQL Extension.
image

  • Will expose a /graphql endpoint
  • Creates a new callback of type middleware which starts as an empty array and the extensions can add fields to it.
  • As an example, the devhelp extension adds a field called "bookmarks" and you can do a query (on /graphql) like:
{
  bookmarks {
    title
    desc    
    
  }
}
  • Additionally, the extension is suppose to expose core-types. As an example, the users are exposed. Query like:
{
  users {
    username
    
  }
}

@netlify
Copy link

netlify bot commented Feb 11, 2023

Deploy Preview for specter-desktop-docs canceled.

Name Link
🔨 Latest commit eb1800e
🔍 Latest deploy log https://app.netlify.com/sites/specter-desktop-docs/deploys/63e76e50e68aec0008cd6cb4

@k9ert k9ert changed the base branch from uiux-revamp to master February 27, 2023 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants