Skip to main content
added 1 character in body
Source Link
Velmurugan
  • 8.2k
  • 2
  • 15
  • 27

It works for me, I'm able to reproduce this issue my side.

if the graphql query used variables in parameters then always expected to send the value of the query variables to be {}. if we pass query variables value to be null then this issue occurs.

Expected Request:

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{},"operationName":"myquery"}

enter image description here

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{"uri":"tcm:5-295-64"},"operationName":"myquery"}

enter image description here

I hope it helps.

It works for me, I'm able to reproduce this issue my side.

if the graphql query used variables in parameters then always expected to send the value of the query variables to be {}. if we pass query variables value to be null then this issue occurs.

Expected Request:

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{},"operationName":"myquery"}

enter image description here

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{"uri":"tcm:5-295-64"},"operationName":"myquery"}

enter image description here

I hope it helps.

It works for me, I'm able to reproduce this issue my side.

if the graphql query used variables in parameters then always expected to send the value of the query variables to be {}. if we pass query variables value to be null then this issue occurs.

Expected Request:

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{},"operationName":"myquery"}

enter image description here

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{"uri":"tcm:5-295-64"},"operationName":"myquery"}

enter image description here

I hope it helps.

added 310 characters in body
Source Link
Velmurugan
  • 8.2k
  • 2
  • 15
  • 27

It works for me, I'm able to reproduce this issue my side.

if the graphql query used variables in parameters then always expected to send the value of the query variables to be {}. if we pass query variables value to be null then this issue occurs.

Expected Request:

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{},"operationName":"myquery"}

enter image description here

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{"uri":"tcm:5-295-64"},"operationName":"myquery"}

enter image description here

I hope it helps.

I'm able to reproduce this issue my side.

if the graphql query used variables in parameters then always expected to send the value of the query variables to be {}. if we pass query variables value to be null then this issue occurs.

Expected Request:

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{},"operationName":"myquery"}

enter image description here

enter image description here

I hope it helps.

It works for me, I'm able to reproduce this issue my side.

if the graphql query used variables in parameters then always expected to send the value of the query variables to be {}. if we pass query variables value to be null then this issue occurs.

Expected Request:

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{},"operationName":"myquery"}

enter image description here

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{"uri":"tcm:5-295-64"},"operationName":"myquery"}

enter image description here

I hope it helps.

Source Link
Velmurugan
  • 8.2k
  • 2
  • 15
  • 27

I'm able to reproduce this issue my side.

if the graphql query used variables in parameters then always expected to send the value of the query variables to be {}. if we pass query variables value to be null then this issue occurs.

Expected Request:

{"query":"query myquery($uri: String = "tcm:5-394-64") \n{ \n
page (cmUri:$uri) {\n id,\n \titemId,\n
\tlastPublishDate,\n title,\n \turl,\n \ttaxonomies{\n
id,key,title\n }\n }\n }\n","variables":{},"operationName":"myquery"}

enter image description here

enter image description here

I hope it helps.