You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
This diff updates the reference url in the error message for the `InvalidConnectionKeyArgPostfix` error.
Also fix some linter errors that were picked up by CI 😅
## More Details
When trying to add a new relay connection, I got an error message in the command line with a url pointing to the relay docs. Specifically, a url to `https://
relay.dev/docs/en/pagination-container#connection`.
{F1980415414}
That url leads to a page that no longer exists...
{F1980415420}
I checked the [history of this page in the wayback machine](https://web.archive.org/web/20210228095734/https://relay.dev/docs/en/pagination-container#connection). In their records, the page used to show this...
{F1980415369}
I think based off of this, the best page to replace the url with is [`https://relay.dev/docs/tutorial/connections-pagination/`](https://relay.dev/docs/tutorial/connections-pagination/).
Update the reference url in the error message for the InvalidConnectionKeyArgPostfix error.
Reviewed By: lynnshaoyu
Differential Revision: D78642574
fbshipit-source-id: eea893744c679fec73a0cea3d7c186a21883d0f6
Copy file name to clipboardExpand all lines: compiler/crates/graphql-ir/src/errors.rs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -354,7 +354,7 @@ pub enum ValidationMessage {
354
354
},
355
355
356
356
#[error(
357
-
"Expected the {key_arg_name} argument to @{connection_directive_name} to be of form '<SomeName>_{postfix}', got '{key_arg_value}'. For a detailed explanation, check out https://relay.dev/docs/en/pagination-container#connection"
357
+
"Expected the {key_arg_name} argument to @{connection_directive_name} to be of form '<SomeName>_{postfix}', got '{key_arg_value}'. For a detailed explanation, check out https://relay.dev/docs/tutorial/connections-pagination/"
358
358
)]
359
359
InvalidConnectionKeyArgPostfix{
360
360
connection_directive_name:DirectiveName,
@@ -465,7 +465,7 @@ pub enum ValidationMessage {
465
465
466
466
#[error("The field `{parent_name}.{field_name}` is deprecated.{}",
Copy file name to clipboardExpand all lines: compiler/crates/relay-transforms/tests/validate_connections/fixtures/connection-invalid-key-name.invalid.expected
✖︎ Expected the key argument to @connection to be of form '<SomeName>__comments', got 'invalid'. For a detailed explanation, check out https://relay.dev/docs/en/pagination-container#connection
18
+
✖︎ Expected the key argument to @connection to be of form '<SomeName>__comments', got 'invalid'. For a detailed explanation, check out https://relay.dev/docs/tutorial/connections-pagination/
0 commit comments