Skip to content

Commit 3bea5f4

Browse files
committed
Fix remaining URLs so they point to latest GraphQL spec
1 parent d4a91a2 commit 3bea5f4

File tree

12 files changed

+65
-65
lines changed

12 files changed

+65
-65
lines changed

doc/fieldparams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ implementation detail by client code. It automatically propagates through the
120120
field resolvers, and if there is a schema exception or one of the `getField`
121121
accessors throws another exception derived from `std::exception`, the
122122
`graphqlservice` library will automatically add the resulting path to the error
123-
report, accoring to the [spec](http://spec.graphql.org/June2018/#sec-Errors).
123+
report, accoring to the [spec](https://spec.graphql.org/October2021/#sec-Errors).
124124

125125
### Launch Policy
126126

doc/responses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ As the comment in
77
responses are not technically JSON-specific, although that is probably the most
88
common way of representing them. These are the primitive types that may be
99
represented in GraphQL, as of the
10-
[June 2018 spec](http://spec.graphql.org/June2018/#sec-Serialization-Format):
10+
[October 2021 spec](https://spec.graphql.org/October2021/#sec-Serialization-Format):
1111

1212
```c++
1313
enum class Type : uint8_t

include/graphqlservice/GraphQLResponse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace graphql::response {
3030

3131
// GraphQL responses are not technically JSON-specific, although that is probably the most common
3232
// way of representing them. These are the primitive types that may be represented in GraphQL, as
33-
// of the [June 2018 spec](http://spec.graphql.org/June2018/#sec-Serialization-Format).
33+
// of the [October 2021 spec](https://spec.graphql.org/October2021/#sec-Serialization-Format).
3434
enum class Type : uint8_t
3535
{
3636
Map, // JSON Object

samples/today/nointrospection/SubscriptionObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ service::AwaitableResolver Subscription::resolve_typename(service::ResolverParam
8585
void AddSubscriptionDetails(const std::shared_ptr<schema::ObjectType>& typeSubscription, const std::shared_ptr<schema::Schema>& schema)
8686
{
8787
typeSubscription->AddFields({
88-
schema::Field::Make(R"gql(nextAppointmentChange)gql"sv, R"md()md"sv, std::make_optional(R"md(Need to deprecate a [field](http://spec.graphql.org/June2018/#sec-Deprecation))md"sv), schema->LookupType(R"gql(Appointment)gql"sv)),
88+
schema::Field::Make(R"gql(nextAppointmentChange)gql"sv, R"md()md"sv, std::make_optional(R"md(Need to deprecate a [field](https://spec.graphql.org/October2021/#sec-Schema-Introspection.Deprecation))md"sv), schema->LookupType(R"gql(Appointment)gql"sv)),
8989
schema::Field::Make(R"gql(nodeChange)gql"sv, R"md()md"sv, std::nullopt, schema->WrapType(introspection::TypeKind::NON_NULL, schema->LookupType(R"gql(Node)gql"sv)), {
9090
schema::InputValue::Make(R"gql(id)gql"sv, R"md()md"sv, schema->WrapType(introspection::TypeKind::NON_NULL, schema->LookupType(R"gql(ID)gql"sv)), R"gql()gql"sv)
9191
})

samples/today/nointrospection/TodaySchema.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
213213
{ service::s_namesTaskState[static_cast<size_t>(today::TaskState::New)], R"md()md"sv, std::nullopt },
214214
{ service::s_namesTaskState[static_cast<size_t>(today::TaskState::Started)], R"md()md"sv, std::nullopt },
215215
{ service::s_namesTaskState[static_cast<size_t>(today::TaskState::Complete)], R"md()md"sv, std::nullopt },
216-
{ service::s_namesTaskState[static_cast<size_t>(today::TaskState::Unassigned)], R"md()md"sv, std::make_optional(R"md(Need to deprecate an [enum value](http://spec.graphql.org/June2018/#sec-Deprecation))md"sv) }
216+
{ service::s_namesTaskState[static_cast<size_t>(today::TaskState::Unassigned)], R"md()md"sv, std::make_optional(R"md(Need to deprecate an [enum value](https://spec.graphql.org/October2021/#sec-Schema-Introspection.Deprecation))md"sv) }
217217
});
218218

219219
typeCompleteTaskInput->AddInputValues({

samples/today/schema.today.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ type Mutation {
106106
"""
107107
type Subscription {
108108
nextAppointmentChange : Appointment @deprecated(
109-
reason:"""Need to deprecate a [field](http://spec.graphql.org/June2018/#sec-Deprecation)"""
109+
reason:"""Need to deprecate a [field](https://spec.graphql.org/October2021/#sec-Schema-Introspection.Deprecation)"""
110110
)
111111
nodeChange(id: ID!): Node!
112112
}
@@ -120,7 +120,7 @@ enum TaskState {
120120
Started
121121
Complete
122122
Unassigned @deprecated(
123-
reason:"""Need to deprecate an [enum value](http://spec.graphql.org/June2018/#sec-Deprecation)"""
123+
reason:"""Need to deprecate an [enum value](https://spec.graphql.org/October2021/#sec-Schema-Introspection.Deprecation)"""
124124
)
125125
}
126126

samples/today/schema/SubscriptionObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ service::AwaitableResolver Subscription::resolve_typename(service::ResolverParam
8585
void AddSubscriptionDetails(const std::shared_ptr<schema::ObjectType>& typeSubscription, const std::shared_ptr<schema::Schema>& schema)
8686
{
8787
typeSubscription->AddFields({
88-
schema::Field::Make(R"gql(nextAppointmentChange)gql"sv, R"md()md"sv, std::make_optional(R"md(Need to deprecate a [field](http://spec.graphql.org/June2018/#sec-Deprecation))md"sv), schema->LookupType(R"gql(Appointment)gql"sv)),
88+
schema::Field::Make(R"gql(nextAppointmentChange)gql"sv, R"md()md"sv, std::make_optional(R"md(Need to deprecate a [field](https://spec.graphql.org/October2021/#sec-Schema-Introspection.Deprecation))md"sv), schema->LookupType(R"gql(Appointment)gql"sv)),
8989
schema::Field::Make(R"gql(nodeChange)gql"sv, R"md()md"sv, std::nullopt, schema->WrapType(introspection::TypeKind::NON_NULL, schema->LookupType(R"gql(Node)gql"sv)), {
9090
schema::InputValue::Make(R"gql(id)gql"sv, R"md()md"sv, schema->WrapType(introspection::TypeKind::NON_NULL, schema->LookupType(R"gql(ID)gql"sv)), R"gql()gql"sv)
9191
})

samples/today/schema/TodaySchema.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ void AddTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
216216
{ service::s_namesTaskState[static_cast<size_t>(today::TaskState::New)], R"md()md"sv, std::nullopt },
217217
{ service::s_namesTaskState[static_cast<size_t>(today::TaskState::Started)], R"md()md"sv, std::nullopt },
218218
{ service::s_namesTaskState[static_cast<size_t>(today::TaskState::Complete)], R"md()md"sv, std::nullopt },
219-
{ service::s_namesTaskState[static_cast<size_t>(today::TaskState::Unassigned)], R"md()md"sv, std::make_optional(R"md(Need to deprecate an [enum value](http://spec.graphql.org/June2018/#sec-Deprecation))md"sv) }
219+
{ service::s_namesTaskState[static_cast<size_t>(today::TaskState::Unassigned)], R"md()md"sv, std::make_optional(R"md(Need to deprecate an [enum value](https://spec.graphql.org/October2021/#sec-Schema-Introspection.Deprecation))md"sv) }
220220
});
221221

222222
typeCompleteTaskInput->AddInputValues({

samples/validation/schema/schema.validation.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

4-
"GraphQL validation [sample](http://spec.graphql.org/October2021/#example-19f2a)"
4+
"GraphQL validation [sample](https://spec.graphql.org/October2021/#example-19f2a)"
55
type Query {
66
dog: Dog
77
}

src/GraphQLService.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ response::IdType ModifiedArgument<response::IdType>::convert(const response::Val
591591

592592
void blockSubFields(const ResolverParams& params)
593593
{
594-
// http://spec.graphql.org/June2018/#sec-Leaf-Field-Selections
594+
// https://spec.graphql.org/October2021/#sec-Leaf-Field-Selections
595595
if (params.selection != nullptr)
596596
{
597597
auto position = params.selection->begin();
@@ -676,7 +676,7 @@ AwaitableResolver ModifiedResult<response::IdType>::convert(
676676

677677
void requireSubFields(const ResolverParams& params)
678678
{
679-
// http://spec.graphql.org/June2018/#sec-Leaf-Field-Selections
679+
// https://spec.graphql.org/October2021/#sec-Leaf-Field-Selections
680680
if (params.selection == nullptr)
681681
{
682682
auto position = params.field.begin();
@@ -1455,7 +1455,7 @@ void SubscriptionDefinitionVisitor::visitField(const peg::ast_node& field)
14551455
name = child.string_view();
14561456
});
14571457

1458-
// http://spec.graphql.org/June2018/#sec-Single-root-field
1458+
// https://spec.graphql.org/October2021/#sec-Single-root-field
14591459
if (!_field.empty())
14601460
{
14611461
auto position = field.begin();
@@ -1698,7 +1698,7 @@ response::AwaitableValue Request::resolve(await_async launch, std::shared_ptr<Re
16981698
const bool isMutation = (operationDefinition.first == strMutation);
16991699
const auto resolverContext =
17001700
isMutation ? ResolverContext::Mutation : ResolverContext::Query;
1701-
// http://spec.graphql.org/June2018/#sec-Normal-and-Serial-Execution
1701+
// https://spec.graphql.org/October2021/#sec-Normal-and-Serial-Execution
17021702
const auto operationLaunch = isMutation ? await_async { std::launch::deferred } : launch;
17031703

17041704
OperationDefinitionVisitor operationVisitor(resolverContext,

0 commit comments

Comments
 (0)