@commercetools-test-data/attribute
This package provides the data model for the commercetools platform Attribute
type
https://docs.commercetools.com/api/projects/products#attribute
Install
$ yarn add -D @commercetools-test-data/attribute
Usage
import type {
TAttribute,
TAttributeDraft,
} from '@commercetools-test-data/attribute';
import * as Attribute from '@commercetools-test-data/attribute';
const attribute = Attribute.random().build<TAttribute>();
const attributeDraftGraphql =
Attribute.AttributeDraft.random().buildGraphql<TAttributeDraft>();