attribute(name: "href") on an <a> tag, or attribute(name: "data-custom") on any element.
Definition
Arguments
name
String!
The name of the attribute to retrieve. Example: "class", "id", "value", "src".
Returns
String TheString scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.