Suppliers

suppliers Query

Returns a paginated list of Supplier objects, with optional filtering and ordering.

Arguments

Name
Type
Description

after

Cursor

Returns the elements in the list that come after the specified cursor

first

Int

Returns the first n elements from the list

before

Cursor

Returns the elements in the list that come before the specified cursor

last

Int

Returns the last n elements from the list

orderBy

SupplierOrder

Ordering options for Suppliers returned from the connection

where

SupplierWhereInput

Filtering options for Suppliers returned from the connection

Return Type

SupplierConnection! - A connection to a list of Supplier objects with pagination information.

Usage Example

query {
  # Search suppliers by name in custom data
  suppliers(
    where: {
      DataContains: ["ACME"]
    },
    orderBy: { field: CREATED_AT, direction: DESC }
  ) {
    edges {
      node {
        id
        data
        dataTypeSlug
        createdAt
      }
    }
    totalCount
  }
}

Common Filters

  • DataContains - Search within custom data fields

  • DataHasKey - Filter by presence of specific data keys

  • dataTypeSlug - Filter by supplier type

  • createdAt_GTE / createdAt_LTE - Filter by date range

For detailed information on querying JSON data fields, see the Advanced JSON Field Queries guide.

Notes

  • Suppliers are master data entities for vendor management

  • Custom supplier attributes are stored in the data field

  • Use data type slugs to categorize different supplier types

  • The DataContains filter searches within the JSON data field

Last updated

Was this helpful?