> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.quickbooks.accounting.Query

- Component: `appmixer.quickbooks.accounting.Query`
- Kind: Action
- Version: 1.0.2
- Visibility: Public
- Connector: [appmixer.quickbooks 1.10.2](https://connectors.appmixer.com/connector/appmixer.quickbooks/1.10.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.quickbooks/1.10.2/component/appmixer.quickbooks.accounting.Query>

Executes an arbitrary GraphQL query against Quickbooks API.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Query (`query`) | textarea | See [Quickbooks docs](https://intuitdeveloper.github.io/intuit-api-docs/docs/graphql-concepts/) for details. |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/quickbooks/accounting/Query?outPort=out`.

### Port `notFound`

| Field | Type | Description |
| --- | --- | --- |
| Query (`query`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.quickbooks.accounting.Query",
  "author": "Harsha Surisetty <harsha@client.io>",
  "icon": "(data URI omitted)",
  "description": "Executes an arbitrary GraphQL query against Quickbooks API.",
  "version": "1.0.2",
  "auth": {
    "service": "appmixer:quickbooks"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "outputType": {
            "type": "string"
          }
        },
        "required": [
          "query"
        ]
      },
      "inspector": {
        "inputs": {
          "query": {
            "type": "textarea",
            "label": "Query",
            "index": 1,
            "tooltip": "See <a target='_blank' rel='noopener noreferrer' href='https://intuitdeveloper.github.io/intuit-api-docs/docs/graphql-concepts/'>Quickbooks docs</a> for details."
          },
          "outputType": {
            "type": "select",
            "options": [
              {
                "content": "One item at a time",
                "value": "item"
              },
              {
                "content": "All items at once",
                "value": "items"
              },
              {
                "content": "Stream to file",
                "value": "file"
              }
            ],
            "defaultValue": "items",
            "index": 2,
            "label": "Output Type",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/quickbooks/accounting/Query?outPort=out",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType",
            "in/query": "inputs/in/query"
          }
        }
      }
    },
    {
      "name": "notFound",
      "options": [
        {
          "label": "Query",
          "value": "query",
          "schema": {
            "type": "string",
            "example": "SELECT * FROM Invoice WHERE TotalAmt > '1000.0'"
          }
        }
      ]
    }
  ]
}
```
