nearform / udaru

Open source Access Manager for node.js
https://nearform.github.io/udaru
MIT License
124 stars 19 forks source link

POC: GraphQL support for Udaru Management and Access API's #579

Open dberesford opened 5 years ago

dberesford commented 5 years ago

Need to spike a /graphql endpoint for Udaru, to be used for a further POC that will involve schema stitching with Hasura.

The obvious solution for me is to use https://github.com/mcollina/fastify-gql, i.e. write two fastify plugins that implement first class graphql support around the udaru-core lib.

Not really interested in the swagger to graphql options, and not interested in having a generic graphql lib that could be implement in any framework for now either, although if we could structure the code in such a way that would help in this down the line then please do.

First part of the POC is support for querying Organisations, Teams and Users, if we do that much it is more that enough for now. Mutations and full api support can come later.