Skip to content

Commit 48fcf58

Browse files
committed
Refs #16, Support for link-field.
1 parent c1590e8 commit 48fcf58

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

graphql_api.graphql.inc

+15
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ use GraphQL\Type\Definition\ObjectType;
1313
function graphql_api_graphql_api_info() {
1414
return [
1515
'types' => [
16+
'field_item_link' => new ObjectType([
17+
'name' => 'field_item_link',
18+
'fields' => function() {
19+
return [
20+
'title' => [
21+
'type' => Type::string(),
22+
'description' => t('The title of the link.')
23+
],
24+
'url' => [
25+
'type' => Type::string(),
26+
'description' => t('The URL of the link.')
27+
],
28+
];
29+
}
30+
]),
1631
'text_formatted' => new ObjectType(
1732
[
1833
'name' => 'text_formatted',

0 commit comments

Comments
 (0)