[GH-ISSUE #46] Objects being printed in single quote instead of double quote? #120

Open
opened 2026-03-15 11:33:50 +03:00 by kerem · 4 comments
Owner

Originally created by @wsong-fv on GitHub (Aug 17, 2020).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/46

I'm using gql-query-builder with an object that I insert into the query as a variable, however, console.log shows that all the fields in the object are being printed with single and not double quotes, which violates the GraphQL syntax?

Originally created by @wsong-fv on GitHub (Aug 17, 2020). Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/46 I'm using gql-query-builder with an object that I insert into the query as a variable, however, `console.log` shows that all the fields in the object are being printed with single and not double quotes, which violates the GraphQL syntax?
Author
Owner

@atulmy commented on GitHub (Aug 17, 2020):

Can you share the link to spec where it mentions double quotes requirement?

<!-- gh-comment-id:675035561 --> @atulmy commented on GitHub (Aug 17, 2020): Can you share the link to spec where it mentions double quotes requirement?
Author
Owner

@wsong-fv commented on GitHub (Aug 17, 2020):

https://spec.graphql.org/June2018/#sec-String-Value

<!-- gh-comment-id:675044867 --> @wsong-fv commented on GitHub (Aug 17, 2020): https://spec.graphql.org/June2018/#sec-String-Value
Author
Owner

@atulmy commented on GitHub (Aug 17, 2020):

@Devorein your thoughts on this?

<!-- gh-comment-id:675046205 --> @atulmy commented on GitHub (Aug 17, 2020): @Devorein your thoughts on this?
Author
Owner

@Devorein commented on GitHub (Sep 24, 2020):

@atulmy I am extremely sorry for the late reply, been real busy. I'll try to submit a PR resolving this issue.

<!-- gh-comment-id:698269522 --> @Devorein commented on GitHub (Sep 24, 2020): @atulmy I am extremely sorry for the late reply, been real busy. I'll try to submit a PR resolving this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gql-query-builder#120
No description provided.