forked from MichalLytek/type-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
59 lines (49 loc) · 1.22 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
type Mutation {
addRecipe(recipe: RecipeInput!): Recipe!
}
"""
A string that cannot be passed as an empty value
"""
scalar NonEmptyString
"""
Floats that will have a value of 0 or more.
"""
scalar NonNegativeFloat
"""
Integers that will have a value of 0 or more.
"""
scalar NonNegativeInt
type Query {
recipe(title: String!): Recipe
"""
Get all the recipes from around the world
"""
recipes: [Recipe!]!
}
"""
Object representing cooking recipe
"""
type Recipe {
averageRating: NonNegativeFloat
creationDate: Timestamp!
"""
The recipe description with preparation info
"""
description: NonEmptyString
ratings: [NonNegativeInt!]!
ratingsCount(minRate: Int! = 0): NonNegativeInt!
specification: NonEmptyString @deprecated(reason: "Use 'description' field instead")
title: NonEmptyString!
}
input RecipeInput {
description: NonEmptyString
title: NonEmptyString!
}
"""
The javascript `Date` as integer. Type represents date and time as number of milliseconds from start of UNIX epoch.
"""
scalar Timestamp