Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

A swagger that has only POST api to graphql returns QueryPlaceholder #502

Description

@jihea-park

Hi.
I use openapi to graphql when I want to generate swagger to graphql.

There is a swgger that has only POST api.

When I try to generate that, schema and QueryPlaceholder exist on file.

schema {
  query: QueryPlaceholder
  mutation: Mutation
}

"""Placeholder object"""
type QueryPlaceholder {
  """Placeholder field"""
  logExploreMessage: String
}

type Mutation {
  ...
}

I want to make query to empty object like this

schema {
  query: Query
  mutation: Mutation
}

type Query{
}

type Mutation {
  ...
}

What should I do?
Please help me.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions