On this page

Generate REST API using SOFA

GraphQL Mesh v0 documentation (superseded by v1): Turn your GraphQL schema into REST API with Sofa. Easy installation and usage. Get started now with `@graphql-yoga/plugin-sofa`.

Sofa takes your GraphQL Schema, looks for available queries, mutations and subscriptions and turns all of that into REST API.

Installation

npm i @graphql-yoga/plugin-sofa

Usage

plugins:
  - sofa:
      basePath: /rest
      swaggerUIEndpoint: /swagger
      info:
        title: 'My REST API'
        version: '1.0.0'