Skip to content

Commit a8aa87d

Browse files
committed
Support more field type: social, name
1 parent f36e583 commit a8aa87d

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

graphql_api.graphql.inc

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,52 @@ function graphql_api_graphql_api_info() {
7272
]
7373
]
7474
]),
75+
'socialfield' => new ObjectType([
76+
'name' => 'socialfield',
77+
'fields' => [
78+
'service' => [
79+
'type' => Type::string(),
80+
'description' => t('Service')
81+
],
82+
'url' => [
83+
'type' => Type::string(),
84+
'description' => t('URL')
85+
],
86+
'weight' => [
87+
'type' => Type::int(),
88+
'description' => t('Weight')
89+
]
90+
]
91+
]),
92+
'field_item_name' => new ObjectType([
93+
'name' => 'field_item_name',
94+
'fields' => [
95+
'title' => [
96+
'type' => Type::string(),
97+
'description' => t('The title of the name.')
98+
],
99+
'given' => [
100+
'type' => Type::string(),
101+
'description' => t('The given name.')
102+
],
103+
'middle' => [
104+
'type' => Type::string(),
105+
'description' => t('The middle of the name.')
106+
],
107+
'family' => [
108+
'type' => Type::string(),
109+
'description' => t('The family of the name.')
110+
],
111+
'generational' => [
112+
'type' => Type::string(),
113+
'description' => t('The generational of the name.')
114+
],
115+
'credentials' => [
116+
'type' => Type::string(),
117+
'description' => t('The credentials of the name.')
118+
]
119+
]
120+
])
75121
]
76122
];
77123
}

0 commit comments

Comments
 (0)