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
8 changes: 4 additions & 4 deletions introspection.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func init() {

TypeKindEnumType = NewEnum(EnumConfig{
Name: "__TypeKind",
Description: "An enum describing what kind of type a given `__Type` is",
Description: "An enum describing what kind of type a given `__Type` is.",
Values: EnumValueConfigMap{
"SCALAR": &EnumValueConfig{
Value: TypeKindScalar,
Expand Down Expand Up @@ -146,7 +146,7 @@ func init() {
},
"OBJECT": &EnumValueConfig{
Value: DirectiveLocationObject,
Description: "Location adjacent to a object definition.",
Description: "Location adjacent to an object type definition.",
},
"FIELD_DEFINITION": &EnumValueConfig{
Value: DirectiveLocationFieldDefinition,
Expand Down Expand Up @@ -327,7 +327,7 @@ func init() {
DirectiveType = NewObject(ObjectConfig{
Name: "__Directive",
Description: "A Directive provides a way to describe alternate runtime execution and " +
"type validation behavior in a GraphQL document. " +
"type validation behavior in a GraphQL document." +
"\n\nIn some cases, you need to provide options to alter GraphQL's " +
"execution behavior in ways field arguments will not suffice, such as " +
"conditionally including or skipping a field. Directives provide this by " +
Expand Down Expand Up @@ -455,7 +455,7 @@ func init() {
},
},
"subscriptionType": &Field{
Description: `If this server supports subscription, the type that ` +
Description: `If this server support subscription, the type that ` +
`subscription operations will be rooted at.`,
Type: TypeType,
Resolve: func(p ResolveParams) (interface{}, error) {
Expand Down
4 changes: 2 additions & 2 deletions introspection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ func TestIntrospection_ExposesDescriptionsOnTypesAndFields(t *testing.T) {
},
map[string]interface{}{
"name": "subscriptionType",
"description": "If this server supports subscription, the type that " +
"description": "If this server support subscription, the type that " +
"subscription operations will be rooted at.",
},
map[string]interface{}{
Expand Down Expand Up @@ -1422,7 +1422,7 @@ func TestIntrospection_ExposesDescriptionsOnEnums(t *testing.T) {
Data: map[string]interface{}{
"typeKindType": map[string]interface{}{
"name": "__TypeKind",
"description": "An enum describing what kind of type a given `__Type` is",
"description": "An enum describing what kind of type a given `__Type` is.",
"enumValues": []interface{}{
map[string]interface{}{
"name": "SCALAR",
Expand Down