Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jihea-park opened this issue Jan 11, 2024 · 0 comments
Open

Comments

@jihea-park
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant