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

Features/extension_graphql #2105

Closed
wants to merge 12 commits into from

Conversation

k9ert
Copy link
Collaborator

@k9ert k9ert commented Jan 31, 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 Jan 31, 2023

Deploy Preview for specter-desktop-docs canceled.

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

@k9ert
Copy link
Collaborator Author

k9ert commented Feb 11, 2023

Won't happen in master. Replaced by #2196

@k9ert k9ert closed this Feb 11, 2023
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

Successfully merging this pull request may close these issues.

1 participant