Skip to content

Commit

Permalink
feat(): update to graphql v15
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Apr 4, 2020
1 parent ddfe581 commit 4e5bde8
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 48 deletions.
18 changes: 16 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"eslint-config-prettier": "6.10.1",
"eslint-plugin-import": "2.20.2",
"graphql": "15.0.0",
"graphql-tools": "4.0.7",
"husky": "4.2.3",
"jest": "25.2.7",
"lint-staged": "10.1.1",
Expand All @@ -59,7 +60,6 @@
"dependencies": {
"chokidar": "3.3.1",
"fast-glob": "3.2.2",
"graphql-tools": "4.0.7",
"iterall": "1.2.2",
"lodash": "4.17.15",
"merge-graphql-schemas": "1.7.7",
Expand Down
90 changes: 45 additions & 45 deletions tests/utils/printed-schema.snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,38 @@ export const printedSchemaSnapshot = `# ----------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
"""example interface"""
interface IRecipe {
id: ID!
title: String!
}
"""recipe object type"""
type Recipe implements IRecipe {
id: ID!
title: String!
description: String
creationDate: DateTime!
averageRating: Float!
lastRate: Float
tags: [String!]!
ingredients: [Ingredient!]!
count(type: String, status: String): Float!
rating: Float!
}
"""
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
"""
scalar DateTime
"""The basic directions"""
enum Direction {
Up
Down
Left
Right
"""orphaned type"""
type SampleOrphanedType {
id: ID!
title: String!
description: String
creationDate: DateTime!
averageRating: Float!
}
type Ingredient {
Expand All @@ -22,25 +43,6 @@ type Ingredient {
name: String @deprecated(reason: "is deprecated")
}
"""example interface"""
interface IRecipe {
id: ID!
title: String!
}
type Mutation {
addRecipe(newRecipeData: NewRecipeInput!): Recipe!
removeRecipe(id: String!): Boolean!
}
"""new recipe input"""
input NewRecipeInput {
"""recipe title"""
title: String!
description: String
ingredients: [String!]!
}
type Query {
move(direction: Direction!): Direction!
Expand All @@ -57,32 +59,30 @@ type Query {
): [Recipe!]!
}
"""recipe object type"""
type Recipe implements IRecipe {
id: ID!
title: String!
description: String
creationDate: DateTime!
averageRating: Float!
lastRate: Float
tags: [String!]!
ingredients: [Ingredient!]!
count(type: String, status: String): Float!
rating: Float!
"""The basic directions"""
enum Direction {
Up
Down
Left
Right
}
"""orphaned type"""
type SampleOrphanedType {
id: ID!
"""Search result description"""
union SearchResultUnion = Ingredient | Recipe
type Mutation {
addRecipe(newRecipeData: NewRecipeInput!): Recipe!
removeRecipe(id: String!): Boolean!
}
"""new recipe input"""
input NewRecipeInput {
"""recipe title"""
title: String!
description: String
creationDate: DateTime!
averageRating: Float!
ingredients: [String!]!
}
"""Search result description"""
union SearchResultUnion = Ingredient | Recipe
type Subscription {
"""subscription description"""
recipeAdded: Recipe!
Expand Down

0 comments on commit 4e5bde8

Please sign in to comment.