usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.7k stars 1.28k forks source link

GraphQL: Load schema from file #2314

Open DempseyRoller opened 6 months ago

DempseyRoller commented 6 months ago

I have checked the following:

Describe the bug

Trying to load a .graphql -schema file results in the following:

Error occurred while loading GraphQL Schema: Error invoking remote method 'renderer:load-gql-schema-file': Error: Failed to load GraphQL schema file

Here's content of a example file:

type Book {
  title: String
  author: Author
}

type Author {
  name: String
  books: [Book]
}

Loading the same schema file in PostMan works. I tried this first with version 1.12.0 then updated to 1.17.0. Neither does work.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

image

GithubOllie commented 5 months ago

Any update on the PR which resolves this issue?

tester-at-bmi commented 5 months ago

Hope this will be fixed/released soon with a upcoming update.

sreelakshmi-bruno commented 1 week ago

Hi, this issue has been resolved hence closing it. Thanks!