-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
GraphQL with rack? #60
Comments
If I understand correctly you would like to see something like the |
I don't see a If you mean the one in the readme, then yes. |
oh, my mistake. My local copy only. Let me clean up and push. If you are looking for a |
Pushed |
I was trying to come up with some way to keep the configuration all in the |
I don't know how the underlying systems work, but I would expect to do something like # config.ru
map('/graphql') { run Agoo::Graphql.app } Looking through the examples, it looks like the graphql server is actually integrated with Agoo::Server, so maybe that's not possible. |
Yes, the graphql server is integrated into the server. |
Does the approach taken seem reasonable to you as a Rack user? |
Should be fine. Every server has their own way of leveraging rack. |
Released. |
No complaints, closing. |
I hope it is ok to reopen this issue. I have been thinking about using the graphQL implementation in a Rails app. To do this I'll have to mount a graphQL schema inside the rails routes as a rack app:
Could this be possible? My goal would be to write an extensible schema for an existing ruby on rails cms. |
Better to create a separate issue. There might be a better way to set up the routes than using the rails router. We can discuss to make sure I'm not missing something. |
Ok, thanks! I just opened #93 |
The GraphQL example starts its own server. I'm wondering if I can stick something in a
config.ru
file to accomplish the same thing.Or something
The text was updated successfully, but these errors were encountered: