IBM / openapi-to-graphql

Translate APIs described by OpenAPI Specifications (OAS) into GraphQL
https://developer.ibm.com/open/projects/openapi-to-graphql/
MIT License
1.6k stars 206 forks source link

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

Open jiheapark opened 5 months ago

jiheapark commented 5 months ago

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.