swarthout / feathers-apollo

Feathers and Apollo Server Sample Project
MIT License
176 stars 20 forks source link

graphql queries #10

Closed veeramarni closed 7 years ago

veeramarni commented 7 years ago

I don't see you using graphql queries. Feathers is limited to only few services such as create, setup, patch ...etc. Don't that limit the graphql usage?

swarthout commented 7 years ago

While the default feathers services only have setup, patch, create, remove, etc. as events, you can easily add custom events if you need: https://docs.feathersjs.com/real-time/events.html#custom-events With this, it is possible to support any graphql query or mutation.

idibidiart commented 7 years ago

Can you provide an example? Reduce the amount of guessing (on how to do things) that we have to do to leverage your great work? Even just a gist and link to here. Thank you. Great idea you have in Feathers + GQL integration!

swarthout commented 7 years ago

That is a great idea. What would you want to see? Example queries?

idibidiart commented 7 years ago

Awesome. I think both queries and mutations, and they could be quite arbitrary and redundant (with respect to default services), and just showing the mechanics of setting them up would be great! Thank you!!

swarthout commented 7 years ago

@idibidiart I added some example queries and mutations to the repo under the examples/ directory. I hope this helps

idibidiart commented 7 years ago

That's so helpful! Thank you.