Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions example/social/introspect.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
"description": "Explains why this element was deprecated, usually also including a suggestion\nfor how to access supported similar data. Formatted in\n[Markdown](https://daringfireball.net/projects/markdown/).",
"name": "reason",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
}
],
Expand Down
10 changes: 7 additions & 3 deletions example/starwars/introspect.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
"description": "Explains why this element was deprecated, usually also including a suggestion\nfor how to access supported similar data. Formatted in\n[Markdown](https://daringfireball.net/projects/markdown/).",
"name": "reason",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
}
],
Expand Down
7 changes: 5 additions & 2 deletions graphql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2567,8 +2567,11 @@ func TestIntrospection(t *testing.T) {
"name": "reason",
"description": "Explains why this element was deprecated, usually also including a suggestion\nfor how to access supported similar data. Formatted in\n[Markdown](https://daringfireball.net/projects/markdown/).",
"type": {
"kind": "SCALAR",
"ofType": null
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "String"
}
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion internal/schema/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var metaSrc = `
# Explains why this element was deprecated, usually also including a suggestion
# for how to access supported similar data. Formatted in
# [Markdown](https://daringfireball.net/projects/markdown/).
reason: String = "No longer supported"
reason: String! = "No longer supported"
) on FIELD_DEFINITION | ENUM_VALUE | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION

# Provides a scalar specification URL for specifying the behavior of custom scalar types.
Expand Down