this is Create Checkout mutaion from doc:
mutation checkoutCreate($input: CheckoutCreateInput!) {
checkoutCreate(input: $input) {
checkout {
# Checkout fields
}
checkoutUserErrors {
# CheckoutUserError fields
}
queueToken
}
}
whyyyyyyyyyyyyy this error occur
:
{
"errors": [
{
"message": "CheckoutCreateInput isn't a defined input type (on $input)",
"locations": [
{
"line": 1,
"column": 25
}
],
"path": [
"mutation checkoutCreate"
],
"extensions": {
"code": "variableRequiresValidType",
"typeName": "CheckoutCreateInput",
"variableName": "input"
}
},
{
"message": "Field 'checkoutCreate' doesn't exist on type 'Mutation'",
"locations": [
{
"line": 3,
"column": 15
}
],
"path": [
"mutation checkoutCreate",
"checkoutCreate"
],
"extensions": {
"code": "undefinedField",
"typeName": "Mutation",
"fieldName": "checkoutCreate"
}
},
{
"message": "Variable $input is declared by checkoutCreate but not used",
"locations": [
{
"line": 1,
"column": 1
}
],
"path": [
"mutation Checkout Create"
],
"extensions": {
"code": "variable Not Used",
"variable Name": "input"
}
}
]
}