Closed CruseCtrl closed 2 years ago
It turns out this was due to an earlier attempt at getting this working, which I had forgotten about. Originally I had pasted the url of my GraphQL API into the "Introspection Query" box in Settings | Languages & Frameworks | GraphQL. Clearing that box made everything work properly. Maybe there should be something to validate that the introspection query matches the expected syntax?
Thanks for making this plugin!
Hi,
I'm trying to turn on introspection for a remote schema, but I'm just getting an empty result with no "data" node. I've created a
.graphqlconfig
file as described in the documentation and I can now send & receive queries using scratch files, but when I try to run the introspection I get an empty result.My
.graphqlconfig
file:The schemas panel:
(I think that the error "A schema should have a query operation defined" is because the introspection hasn't yet created a schema)
The result of running "Get GraphQL Schema from Endpoint (Introspection)" on
dev
:But I can successfully run a query in a scratch file, so it's definitely connecting to the server correctly:
Extra information The server is running PostGraphile I can successfully fetch the schema in Insomnia, just by pasting in the url of my GraphQL server and giving it the correct access token, without having to do any other setup
I get the following error in the logs of the PostGraphile server:
Version and Environment Details Operation system: macOS Big Sur Version 11.6 IDE name and version: PyCharm 2021.2.2 (Professional Edition) Plugin version: JS GraphQL 3.0.0
Thanks!