How to define details array in the below request:
query{
results(
id: "56",
details:
{
name: "yamini",
bloodGroup: "AB+"
age:25
}
)
{
message
}
}
Msquare
9,4627 gold badges30 silver badges71 bronze badges
1 Answer 1
Try This To Pass Array in Query
{
results(id: "56", details: [
{
name: "yamini",
bloodGroup: "AB+",
age: 25
},
{
name: "Yerusu",
bloodGroup: "AB-",
age: 22
}
]
) {
message
}
}
For More : https://developer.adobe.com/commerce/webapi/graphql/schema/cart/mutations/add-products/
answered Jul 3, 2023 at 14:25
Msquare
9,4627 gold badges30 silver badges71 bronze badges
-
getting this error: 1 exception(s):\nException #0 (GraphQL\\Error\\SyntaxError): Syntax Error: Unterminated string.\n\nException #0 (GraphQL\\Error\\SyntaxError): Syntax Error: Unterminated string.\n<pre>#1 GraphQL\\Language\\Lexer->readToken() called at [Yamini Yerusu– Yamini Yerusu2023年07月03日 14:37:22 +00:00Commented Jul 3, 2023 at 14:37
-
Please share your schema and your resolver file. For more information. Please update your question.Msquare– Msquare2023年07月03日 15:03:10 +00:00Commented Jul 3, 2023 at 15:03
Explore related questions
See similar questions with these tags.
default