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

Generate Graphql schema without paths #495

Open
naulacambra opened this issue Mar 27, 2023 · 0 comments
Open

Generate Graphql schema without paths #495

naulacambra opened this issue Mar 27, 2023 · 0 comments

Comments

@naulacambra
Copy link

Describe the bug
I have an OpenAPI definition, Master-OB-OpenAPI.json, which doesn't have any path in it, only schema definitions. I've tried to generate the Graphql schema file, but it only generated this

schema {
  query: QueryPlaceholder
}

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

To Reproduce
Steps to reproduce the behavior:

  1. Execute npx openapi-to-graphql .\Master-OB-OpenAPI.json --save output.sdl
  2. Inspect the output.sdl file
  3. See the output written above

Expected behavior
I would expected an sdl file with all the schemas in it

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