Skip to content

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

@jihea-park

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.

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