Home > @vsf-enterprise/commercetools-api > getChannelDefaultQuery

# getChannelDefaultQuery variable

Default GraphQL query for the getChannel API endpoint

Signature:

getChannelDefaultQuery = "\n  query channels(\n    $where: String,\n    $limit: Int,\n    $offset: Int\n    $acceptLanguage: [Locale!]\n  ) {\n    channels(\n      where: $where,\n      limit: $limit,\n      offset: $offset,\n    ) {\n      offset\n      count\n      total\n      results {\n        id,\n        version,\n        key,\n        roles,\n        name(acceptLanguage: $acceptLanguage),\n        description(acceptLanguage: $acceptLanguage),\n        address {\n          additionalAddressInfo\n          additionalStreetInfo\n          apartment\n          building\n          city\n          company\n          country\n          department\n          email\n          fax\n          firstName\n          id\n          key\n          lastName\n          mobile\n          pOBox\n          phone\n          postalCode\n          region\n          salutation\n          state\n          streetName\n          streetNumber\n          title\n        },\n        geoLocation {\n          ... on Point {\n            type\n            coordinates\n          }\n        },\n        createdAt,\n        lastModifiedAt,\n        custom {\n          customFieldsRaw {\n            name\n            value\n          }\n        }\n      }\n    }\n  }\n"