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

Document support for graphql spec #313

Closed
krish7919 opened this issue Jan 18, 2022 · 5 comments
Closed

Document support for graphql spec #313

krish7919 opened this issue Jan 18, 2022 · 5 comments
Labels
bug Something isn't working docs Documentation Issue

Comments

@krish7919
Copy link

Can we add a note in the docs somewhere where we mention if graphjin supports the full graphql spec?

Something similar to 99designs/gqlgen#760 but in the docs.

Use-case: this will be useful for new developers and prospective adopters to understand the trade-offs in case graphjin doesn't support the full spec!

@krish7919 krish7919 added bug Something isn't working docs Documentation Issue labels Jan 18, 2022
@dosco
Copy link
Owner

dosco commented Jan 19, 2022

Sure that makes sense. Our docs are an open wiki so anyone can make this update.

QUERY ✔️
MUTATION ✔️
SUBSCRIPTION ✔️ 
FIELD ✔️
FRAGMENT_DEFINITION ✔️
FRAGMENT_SPREAD ✔️
INLINE_FRAGMENT ✔️

@krish7919
Copy link
Author

Does it support all the schema directives too?

@dosco
Copy link
Owner

dosco commented Jan 20, 2022

The schema is auto generated from the database you can query it with an IntrospectionQuery kinda like in the linked gist. The web ui uses this introspection query. https://gist.github.com/craigbeck/b90915d49fda19d5b2b17ead14dcd6da

@krish7919
Copy link
Author

@dosco any update on this? I get your earlier comment about docs are open source, but I do not know what to write there as I am unsure of what GraphJin supports (or does not support).

@dosco
Copy link
Owner

dosco commented Sep 22, 2022

I'm not an expert in the schema stuff in short GraphJin is different from other GraphQL frameworks it does not allow you to define a schema. It auto-discovers your database and generates a schema and then from your GraphQL it auto generates SQL queries. As far I know it supports everything in the GraphQL spec and the generated schema uses almost all the schema directives as well. Here's the code that generates the GraphQL schema from the database schema

@dosco dosco closed this as completed Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docs Documentation Issue
Projects
None yet
Development

No branches or pull requests

2 participants