Skip to content

Commit 7255fbe

Browse files
committed
Add description field to custom-scalar type
1 parent a2b3771 commit 7255fbe

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Resources/skeleton/CustomScalarConfig.php.skeleton

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[
22
<spaces>'name' => <name>,
3+
<spaces>'description' => <description>,
34
<spaces>'serialize' => <serialize>,
45
<spaces>'parseValue' => <parseValue>,
56
<spaces>'parseLiteral' => <parseLiteral>,

tests/starWarsSchema.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
DateTime:
33
type: custom-scalar
44
config:
5+
description: "The DateTime type"
56
serialize: ["Overblog\\GraphQLGenerator\\Tests\\DateTimeType", "serialize"]
67
parseValue: ["Overblog\\GraphQLGenerator\\Tests\\DateTimeType", "parseValue"]
78
parseLiteral: ["Overblog\\GraphQLGenerator\\Tests\\DateTimeType", "parseLiteral"]

0 commit comments

Comments
 (0)