Skip to content

Commit ec16e98

Browse files
committed
Partial support field type link
1 parent 3e46397 commit ec16e98

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

graphql_api.graphql.inc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,24 @@ function graphql_api_graphql_api_info() {
139139
'description' => t('The credentials of the name.')
140140
]
141141
]
142+
]),
143+
'field_item_link' => new ObjectType([
144+
'name' => 'field_item_link',
145+
'fields' => [
146+
'title' => [
147+
'type' => Type::string(),
148+
'description' => t('The title of the link.')
149+
],
150+
'url' => [
151+
'type' => Type::string(),
152+
'description' => t('The URL of the link.')
153+
],
154+
// @todo convert attributes to JSON?
155+
// 'attributes' => [
156+
// 'type' => Type::string(),
157+
// 'description' => t('The attributes of the link.')
158+
// ],
159+
]
142160
])
143161
]
144162
];

0 commit comments

Comments
 (0)