Generate REST API using SOFA
Sofa takes your GraphQL Schema, looks for available queries, mutations and subscriptions and turns all of that into REST API.
Installation
Terminal
yarn add @graphql-yoga/plugin-sofa
Usage
plugins:
- sofa#useSofaWithSwaggerUI:
basePath: /rest
swaggerUIEndpoint: /swagger
info:
title: 'My REST API'
version: '1.0.0'