SEPTEMBER 19-21, 2023 • SAN FRANCISCO
Register Now!
SEPTEMBER 19-21, 2023 • SAN FRANCISCO
  • Solutions
  • Ecosystem
  • Blog
  • Our Services
  • About Us
  • Contact Us

GraphQL SOFA

Generate RESTful APIs from your GraphQL server

DocsDocsGitHubGitHub (opens in a new tab)
  • Introduction
    • Queries
    • Mutations
    • Subscriptions
    • OpenAPI (Swagger)
    • Nested Data and Models
    • Using Context
    • Using Objects Instead of IDs
    • Custom Execute Phase
    • Error Handling
    • Customize Endpoint's HTTP Method
    • Introduction
      • Queries
      • Mutations
      • Subscriptions
      • OpenAPI (Swagger)
      • Nested Data and Models
      • Using Context
      • Using Objects Instead of IDs
      • Custom Execute Phase
      • Error Handling
      • Customize Endpoint's HTTP Method
Question? Give us feedback → (opens in a new tab)Edit this page on GitHub
Docs
Essentials
Queries

Queries

Queries are transformed into GET requests.

Given the following example:

type Comment {
  id: ID
  text: String
}
 
type Query {
  comments: [Comment]
}

Sofa will create a GET /comments route.

curl http://localhost:3000/api/comments
IntroductionMutations

PRODUCTS

  • Hive
  • Conductor
  • Yoga
  • Envelop
  • Stitching
  • Inspector
  • Code Generator
  • Mesh
  • Tools
  • Modules
  • ESLint
  • Config
  • feTS
  • Scalars
  • Shield
  • SOFA
  • Angular
  • WhatsApp
  • KitQL
  • WS
  • SSE

RESOURCES

  • Press Kit

COMPANY

  • About
  • Blog
  • Newsletter
  • Open Source
  • Services
  • GitHub

COMMUNITY

  • Twitter
  • LinkedIn
  • Discord
  • Medium
  • YouTube
Cloud Security Alliance Star Level One Badge