---
title: "Deprecation warning"
description: "Every time a deprecated feature is used in a query or mutation, a warning will be included in the response, as part of the extensions element."
lang: en
languages:
  en: https://docs.vismasoftware.no/businessnxtapi/endoflife/deprecationwarning/index.md
lastmod: 2026-07-10
---

> Documentation index: https://docs.vismasoftware.no/businessnxtapi/endoflife/llms.txt


# Deprecation warning

Last modified July 10, 2026

> Every time a deprecated feature is used in a query or mutation, a warning will be included in the response, as part of the extensions element.


The presence of a warning does not affect the response `data`. The warning includes a message explaining what is deprecated and what should be used instead, as well as the path to the deprecated feature in the query or mutation.

Here is an example:

```graphql { title = "Query" }
query read($cid : Int)
{
   useCompany(no: $cid) 
   {
      generalLedgerAccount(first:2, 
                           sortOrder : {accountNo : ASC}) 
      {
         items 
         {
            accountNo
            name
         }
      }
   }
}
```

```graphql { title = "Result" }
{
   "data": {
      "useCompany": {
         "generalLedgerAccount": {
            "items": [
               {
                  "accountNo": 1000,
                  "name": "Forskning og utvikling"
               },
               {
                  "accountNo": 1020,
                  "name": "Konsesjoner"
               }
            ]
         }            
      }
   },
   "extensions": {
      "warnings": [
         {
            "message": "The argument 'sortOrder' is deprecated and will be removed. Use 'orderBy' instead.",
            "path": [
               "useCompany",
               "generalLedgerAccount"
            ]
         }
      ],
      "vbnxt-trace-id": "83bcb079fb2c8..."
   }
}
```

---

[View this page](https://docs.vismasoftware.no/businessnxtapi/endoflife/deprecationwarning/)
