The customAttributeMetadata endpoint returns the attribute type, given an attribute code and entity type. All entity attributes can be added to an equivalent GraphQL type, including custom, extension, and EAV (which have precedence set in that order for collisions). The ability to know the type of attribute a given field is obscured from the GraphQL query consumer.
Example usage
The following query returns the attribute type for various custom and EAV attributes.
Request
The key you’re storing EAV attributes under
Response
Supported attributes
Attribute
Data Type
Description
attribute_code
String
The unique identifier for an attribute code. This value should be in lowercase letters without spaces.