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

Error in Auto Query Replication from webui #422

Open
rkrishnasanka opened this issue Mar 3, 2023 · 2 comments
Open

Error in Auto Query Replication from webui #422

rkrishnasanka opened this issue Mar 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@rkrishnasanka
Copy link
Contributor

rkrishnasanka commented Mar 3, 2023

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 rkrishnasanka added the bug Something isn't working label Mar 3, 2023
@rkrishnasanka rkrishnasanka changed the title Error in Auto Query generation Error in Auto Query Replication from webui Mar 3, 2023
@dosco
Copy link
Owner

dosco commented Mar 11, 2023

Thanks will take a look next week.

@coheredigital
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants