graphjin icon indicating copy to clipboard operation
graphjin copied to clipboard

Error in Auto Query Replication from webui

Open rkrishnasanka opened this issue 2 years ago • 2 comments

What version of GraphJin are you using?

github.com/dosco/graphjin/core/v3 v3.0.0-20230302083035-c647f8a44bda github.com/dosco/graphjin/serv/v3 v3.0.0-20230204233127-c618c2bad99b

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, OS)?

Ubuntu, 8 GB

Steps to reproduce the issue (config used to run GraphJin).

  1. Created a query:
Screen Shot 2023-03-03 at 12 51 24 PM

Step 2. Open the corresponding graphql file in config directory that graphjin replicates.

Expected behaviour and actual result.

Expected Query Generated:

Replicated query is missing q in query.


uery getUserInfo($username: String) {
	currentUser: users_customuser(where: {
    username: $username
  }){
    id,
    email,
    first_name,
    last_name,
    username
  }
}

Actual Result

query getUserInfo($username: String) {
	currentUser: users_customuser(where: {
    username: $username
  }){
    id,
    email,
    first_name,
    last_name,
    username
  }
}

rkrishnasanka avatar Mar 03 '23 17:03 rkrishnasanka

Thanks will take a look next week.

dosco avatar Mar 11 '23 17:03 dosco

Any update on this? From what I can tell this issue will always cause the first character to be trimmed from the output. So in my case its removing the # from a comment at the top of the query. For now I'm working around it by using two # for the comments. Unfortunately the WebUI also like to remove comments when you format the query.

coheredigital avatar Dec 15 '23 20:12 coheredigital