GraphQL, QueryRoot, Orders, Field 'orders' doesn't accept argument 'id'

YCCW
New Member
2 0 0

 

 

{
    "errors": [
        {
            "message": "Field 'orders' doesn't accept argument 'id'",
            "locations": [
                {
                    "line": 3,
                    "column": 12
                }
            ],
            "path": [
                "query",
                "orders",
                "id"
            ],
            "extensions": {
                "code": "argumentNotAccepted",
                "name": "orders",
                "typeName": "Field",
                "argumentName": "id"
            }
        }
    ]
}

 

 

0 Likes
YCCW
New Member
2 0 0

I solved my problem. I was using the incorrect query syntax. See below.

    {
        orders(first: 10, query: "id:ID_HERE") {
            edges {
                node {
                    id
                }
            }
        }
    }
0 Likes