Skip to content

Commit

Permalink
graphql tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKonings committed May 30, 2020
1 parent 50c37cf commit 7b687e0
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 323 deletions.
18 changes: 18 additions & 0 deletions .graphqlconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
projects:
fffbadminton:
schemaPath: amplify/backend/api/fffbadminton/build/schema.graphql
includes:
- src/graphql/**/*.js
excludes:
- ./amplify/**
extensions:
amplify:
codeGenTarget: javascript
generatedFileName: ''
docsFilePath: src/graphql
region: eu-central-1
apiId: null
maxDepth: 2
extensions:
amplify:
version: 3
1 change: 1 addition & 0 deletions amplify/backend/api/fffbadminton/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ type Player @model {
id: ID!
name: String
game: Game @connection(name: "GamePlayer")
test: String
}
135 changes: 9 additions & 126 deletions src/graphql/mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ export const createGameday = /* GraphQL */ `
id
date
games {
items {
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
nextToken
}
createdAt
Expand All @@ -33,13 +26,6 @@ export const updateGameday = /* GraphQL */ `
id
date
games {
items {
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
nextToken
}
createdAt
Expand All @@ -56,13 +42,6 @@ export const deleteGameday = /* GraphQL */ `
id
date
games {
items {
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
nextToken
}
createdAt
Expand All @@ -80,35 +59,20 @@ export const createGame = /* GraphQL */ `
gameday {
id
date
games {
nextToken
}
createdAt
updatedAt
}
player1 {
id
name
game {
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
test
createdAt
updatedAt
}
player2 {
id
name
game {
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
test
createdAt
updatedAt
}
Expand All @@ -129,35 +93,20 @@ export const updateGame = /* GraphQL */ `
gameday {
id
date
games {
nextToken
}
createdAt
updatedAt
}
player1 {
id
name
game {
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
test
createdAt
updatedAt
}
player2 {
id
name
game {
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
test
createdAt
updatedAt
}
Expand All @@ -178,35 +127,20 @@ export const deleteGame = /* GraphQL */ `
gameday {
id
date
games {
nextToken
}
createdAt
updatedAt
}
player1 {
id
name
game {
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
test
createdAt
updatedAt
}
player2 {
id
name
game {
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
test
createdAt
updatedAt
}
Expand All @@ -227,29 +161,12 @@ export const createPlayer = /* GraphQL */ `
name
game {
id
gameday {
id
date
createdAt
updatedAt
}
player1 {
id
name
createdAt
updatedAt
}
player2 {
id
name
createdAt
updatedAt
}
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
test
createdAt
updatedAt
}
Expand All @@ -265,29 +182,12 @@ export const updatePlayer = /* GraphQL */ `
name
game {
id
gameday {
id
date
createdAt
updatedAt
}
player1 {
id
name
createdAt
updatedAt
}
player2 {
id
name
createdAt
updatedAt
}
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
test
createdAt
updatedAt
}
Expand All @@ -303,29 +203,12 @@ export const deletePlayer = /* GraphQL */ `
name
game {
id
gameday {
id
date
createdAt
updatedAt
}
player1 {
id
name
createdAt
updatedAt
}
player2 {
id
name
createdAt
updatedAt
}
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
test
createdAt
updatedAt
}
Expand Down
Loading

0 comments on commit 7b687e0

Please sign in to comment.