Open anupama-pathirage opened 9 months ago
The try-it view directly connects to the GraphQL server to initiate the session. It will fail if the server is not running correctly. Please check the server side by sending a request via Postman or any other way. Or else please provide the exact Ballerina, extension and MySQL versions you are using to reproduce the issue.
@gigara server is running and it responds to curl commands too by fetching data from MySQL. So this connection error is not to the DB, but between graphql client and server.
You can reproduce using https://github.com/anupama-pathirage/ballerina-training-content/tree/graphql-level4
Ballerina 2201.8.4 (Swan Lake Update 8) Language specification 2023R1 Update Tool 1.4.2
@niveathika knows the context. IINM she mentioned that should be an issue with compiler plugin level and may be reproducable without MySQL (with some other client ) too
Description: See the sample code below.
Not working :
Working :
When we move the client init to the resource function it is working.