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

Support for defining a schema #54

Closed
Martinsos opened this issue Sep 7, 2017 · 4 comments
Closed

Support for defining a schema #54

Martinsos opened this issue Sep 7, 2017 · 4 comments

Comments

@Martinsos
Copy link

Hi, thank you for this project!
I am very new to GraphQL so forgive me if I am asking naive questions :).
I am considering implementing a graphql server in C++, and while I see that libgraphqlparser offer parsing of a graphql query, I could not find if it offers creating of Schema and executing query against it?

I know that in other languages(js) the idea is to generate the schema and then when query arrives it is parsed, validated and executed against the schema, so that is why I am looking for the libraries that would support the same thing in C++.

If there is support, would you mind sharing some code examples? Thanks!

@swolchok
Copy link
Contributor

creating of Schema
#45 added support for parsing the schema definition part of the language.

executing query
executing a query is definitely out of scope for this project. As its name states, it is just for parsing. There are server libraries in a variety of programming languages listed at http://graphql.org/code/, but none of them appears to be in C++ yet.

@Martinsos
Copy link
Author

Thanks a lot for the answer!

@emwalker
Copy link

Curious whether validating a GraphQL document against a parsed schema is in or out of scope for this project?

@emwalker
Copy link

Ok, just found this and this, which will perhaps answer my question.

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