Supply: Multi-match query array size limits & pagination

Modified on Thu, 18 Jan 2024 at 11:52 AM

To protect our services and intellectual property, the following limits are imposed for supMultiMatch queries:

  1. The total number of parts returned should be less than 100.

  2. When paging the limit plus start cannot exceed 10,000.


 See the example below: 


query sizeLimit{
  supSearchMpn(
    q: "acs770"
    limit: 200
    start:20000
  ) {
    hits
    results {
      part {
        id
        name
        mpn
      }
    }
  }
}


This will result in an error response:

{
  "errors": [
    {
      "message": "start must be between 0 and 1000",
      "locations": [
        {
          "line": 1079,
          "column": 3
        }
      ],
      "path": [
        "supSearchMpn"
      ],
      "extensions": {
        "remote": {
          "message": "start must be between 0 and 1000",
          "path": [
            "supSearchMpn"
          ]
        },
        "schemaName": "Supply"
      }
    },
    {
      "message": "limit must be between 0 and 100",
      "locations": [
        {
          "line": 1079,
          "column": 3
        }
      ],
      "path": [
        "supSearchMpn"
      ],
      "extensions": {
        "remote": {
          "message": "limit must be between 0 and 100",
          "path": [
            "supSearchMpn"
          ]
        },
        "schemaName": "Supply"
      }
    }
  ],
  "extensions": {
    "requestId": "a43cf3e2-e319-4453-a1e9-59063ef113b4"
  }
}


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article