Skip to content

Commit

Permalink
Upgrade relay to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
juffalow committed Nov 6, 2021
1 parent 9d1b31c commit e9db631
Show file tree
Hide file tree
Showing 14 changed files with 790 additions and 755 deletions.
2 changes: 1 addition & 1 deletion .graphqlconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"schemaPath":"schema.graphql",
"extensions":{
"endpoints":{
"local": "http://localhost:3013/graphql",
"local": "http://localhost:3010/graphql",
"default":"http://graphql.juffalow.com/graphql",
"prod":"http://graphql.juffalow.com/graphql"
}
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"version": "2.0.0",
"private": true,
"dependencies": {
"babel-plugin-relay": "^11.0.0",
"babel-plugin-relay": "^12.0.0",
"react": "^17.0.0",
"react-bootstrap": "^1.3.0",
"react-dom": "^17.0.0",
"react-helmet": "^5.2.1",
"react-relay": "^11.0.1",
"react-relay": "^12.0.0",
"react-router-dom": "^5.0.0",
"react-scripts": "^4.0.3",
"relay-runtime": "^11.0.1"
"relay-runtime": "^12.0.0"
},
"scripts": {
"start": "react-scripts start",
Expand Down Expand Up @@ -42,11 +42,11 @@
"@types/react": "^16.9.23",
"@types/react-dom": "^16.9.5",
"@types/react-helmet": "^5.0.15",
"@types/react-relay": "^11.0.0",
"@types/react-relay": "^11.0.2",
"@types/react-router-dom": "^5.1.3",
"graphql": "^15.5.0",
"relay-compiler": "^11.0.0",
"relay-compiler-language-typescript": "^13.0.9",
"graphql": "^15.0.0",
"relay-compiler": "^12.0.0",
"relay-compiler-language-typescript": "^14.3.0",
"typescript": "^4.0.2"
}
}
24 changes: 22 additions & 2 deletions schema.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# source: http://localhost:3013/graphql
# timestamp: Fri Mar 20 2020 12:46:58 GMT+0100 (Central European Standard Time)
# source: http://localhost:3010/graphql
# timestamp: Sat Nov 06 2021 12:16:11 GMT+0100 (Central European Standard Time)

"""Exposes a URL that specifies the behaviour of this scalar."""
directive @specifiedBy(
"""The URL that specifies the behaviour of this scalar."""
url: String!
) on SCALAR

type Author {
"""Globally unique ID of the author"""
Expand Down Expand Up @@ -54,6 +60,10 @@ enum AuthorsOrderField {
CREATED_AT
}

input deleteAuthorInput {
id: Int!
}

"""The ordering direction."""
enum Direction {
"""Specifies an ascending order for a given orderBy argument."""
Expand All @@ -63,6 +73,16 @@ enum Direction {
DESC
}

type Mutation {
createAuthor(input: NewAuthor!): Author
deleteAuthor(input: deleteAuthorInput!): Author
}

input NewAuthor {
firstName: String!
lastName: String!
}

"""Information about pagination in a connection."""
type PageInfo {
"""The item at the end of the edge."""
Expand Down
3 changes: 2 additions & 1 deletion src/pages/authors/__generated__/AuthorRow_author.graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions src/pages/authors/__generated__/AuthorsContainerQuery.graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/pages/home/__generated__/HomeContainerQuery.graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/pages/home/__generated__/HomeContainer_quotes.graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/pages/home/__generated__/QuoteCard_quote.graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/pages/home/__generated__/QuotesList_quotes.graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e9db631

Please sign in to comment.