-
-
Notifications
You must be signed in to change notification settings - Fork 569
Closed
Description
Currently for field (such as currency in below example), only array type definition is allowed (has to be an array within which defines a "type"). In other GraphQL implementations such as https://github.com/Youshido/GraphQL, a simpler shorthand like this is allowed:
Proposed
'currency' => Type::string()
Current
$ProductType = new ObjectType([
'name' => 'Product',
'fields' => [
'title' => [
'type' => Type::string()
],
'priceStr' => [
'type' => Type::string()
],
'currency' => [
'type' => Type::string()
]
]
]);
I have a rough code change that can convert to a pull request, if more ppl find it handy.
fieteboerner
Metadata
Metadata
Assignees
Labels
No labels