{"repo":"acro5piano/graphql-rest-proxy","free":true,"listed":false,"github":"https://github.com/acro5piano/graphql-rest-proxy","clone":"git clone https://github.com/acro5piano/graphql-rest-proxy.git","description":"Turn your REST API into GraphQL - A Proxy Server that pipes request from GraphQL to REST with GraphQL DSL, performant nested children, mutations, input types, and more.","language":"TypeScript","stars":257,"topics":["graphql","proxy","typescript","javascript","cli-app","graphql-server","rest-api","expressjs"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"graphql-rest-proxy Convert your REST server to GraphQL server. Install Or if you use Yarn: Why We all know GraphQL is great, so you want to move from REST API to GraphQL. However, it requires a lot of effort to replace your current REST API with a brand new GraphQL server. graphql-rest-proxy comes in to address this issue. It proxies GraphQL to REST API according to the defined schema. Getting Started STEP 1. Define your schema. schema.graphql STEP 2. Run your proxy server. STEP 3. Request! It will return like this: Examples Basic Query Proxy Query with Parameters You can refer the id of query args by ^id . Mutation with Input Parameters Mutation forward variables to the REST API. Request example: Nested Objects You can refer the id of parent object by ^id . Specify base url You can set base url to reduce verbosity: Configuration CLI options are: You can also set a config file. proxy.config.js And run with the configuration: Notes Request as less as possible graphql-rest-proxy does not request if proxy response includes child object. This means you can reduce API call if you includes child object. For example, if the schema is like this: And REST API returns like this: In this case, posts is embbed in response, so graphql-rest-proxy doesn't request to https://my-rest-api.com/users/1/posts . Development Status Still in Beta. If you have any suggestions or feature requests, feel free to open new issues or Pull Requests! TODO: - [ ] More type support - [ ] Fragment - [ ] Scalar ","default_branch":null,"files":null,"tree":[],"storefront":"/r/acro5piano","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/acro5piano/graphql-rest-proxy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}