---
id: compound
title: Compound
---

export const Tag = ({children, color}) => (
<span
style={{
      backgroundColor: color,
      borderRadius: '2px',
      color: '#fff',
      padding: '0.2rem',
    }}>
{children}
</span>
);

[Generated query](https://grandstack.io/docs/graphql-schema-generation-augmentation#generated-queries) for Compound type nodes.

```graphql
Compound(
  _id: ID = 0
  description: String
  type: String
  name: String
  source: String
  company: String
  ttd_id: ID = 0
  chebi_id: ID = 0
  chemspider_id: Float = 0.0
  drugbank_id: ID = 0
  kegg_drug_id: ID = 0
  kegg_id: ID = 0
  pubchem_id: ID = 0
  unii: ID = 0
  inchi: ID = 0
  inchikey: ID = 0
  cas_number: String
  accession_numbers: String
  therapeutic_class: String
  drug_class: String
  compound_class: String
  groups: String
  categories: String
  atc_codes: String
  source_url: String
  drug_formula: String
  drug_smiles: String
  drug_type: String
  highest_stat: String
  indication: String
  mechanism: String
  synonyms: String
  first: Int = 0
  offset: Int = 0
  orderBy: [_CompoundOrdering] = []
  filter: _CompoundFilter
): [Compound]

```

### Arguments

#### `_id` ([`ID`](/docs/api/scalars/id))

#### `description` ([`String`](/docs/api/scalars/string))

#### `type` ([`String`](/docs/api/scalars/string))

#### `name` ([`String`](/docs/api/scalars/string))

#### `source` ([`String`](/docs/api/scalars/string))

#### `company` ([`String`](/docs/api/scalars/string))

#### `ttd_id` ([`ID`](/docs/api/scalars/id))

#### `chebi_id` ([`ID`](/docs/api/scalars/id))

#### `chemspider_id` ([`Float`](/docs/api/scalars/float))

#### `drugbank_id` ([`ID`](/docs/api/scalars/id))

#### `kegg_drug_id` ([`ID`](/docs/api/scalars/id))

#### `kegg_id` ([`ID`](/docs/api/scalars/id))

#### `pubchem_id` ([`ID`](/docs/api/scalars/id))

#### `unii` ([`ID`](/docs/api/scalars/id))

#### `inchi` ([`ID`](/docs/api/scalars/id))

#### `inchikey` ([`ID`](/docs/api/scalars/id))

#### `cas_number` ([`String`](/docs/api/scalars/string))

#### `accession_numbers` ([`String`](/docs/api/scalars/string))

#### `therapeutic_class` ([`String`](/docs/api/scalars/string))

#### `drug_class` ([`String`](/docs/api/scalars/string))

#### `compound_class` ([`String`](/docs/api/scalars/string))

#### `groups` ([`String`](/docs/api/scalars/string))

#### `categories` ([`String`](/docs/api/scalars/string))

#### `atc_codes` ([`String`](/docs/api/scalars/string))

#### `source_url` ([`String`](/docs/api/scalars/string))

#### `drug_formula` ([`String`](/docs/api/scalars/string))

#### `drug_smiles` ([`String`](/docs/api/scalars/string))

#### `drug_type` ([`String`](/docs/api/scalars/string))

#### `highest_stat` ([`String`](/docs/api/scalars/string))

#### `indication` ([`String`](/docs/api/scalars/string))

#### `mechanism` ([`String`](/docs/api/scalars/string))

#### `synonyms` ([`String`](/docs/api/scalars/string))

#### `first` ([`Int`](/docs/api/scalars/int))

#### `offset` ([`Int`](/docs/api/scalars/int))

#### `orderBy` ([`[_CompoundOrdering]`](/docs/api/enums/compound-ordering))

#### `filter` ([`_CompoundFilter`](/docs/api/inputs/compound-filter))

### Type

#### [`Compound`](/docs/api/objects/compound)
