You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
DiscountCodeQueryResult
export type DiscountCodeQueryResult = {
__typename?: 'DiscountCodeQueryResult';
offset: Scalars['Int'];
count: Scalars['Int'];
total: Scalars['Long'];
exists: Scalars['Boolean'];
results: Array<DiscountCode>;
};