-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.gql
More file actions
executable file
·43 lines (36 loc) · 815 Bytes
/
schema.gql
File metadata and controls
executable file
·43 lines (36 loc) · 815 Bytes
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
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
type Car {
id: ID!
color: String!
recipeDescription: String!
}
"""Date custom scalar type"""
scalar Date
type Mutation {
addRecipe(newRecipeData: NewRecipeInput!): Recipe!
removeRecipe(id: String!): Boolean!
}
input NewRecipeInput {
title: String!
description: String
ingredients: [String!]!
}
type Query {
recipe(id: String!): Recipe!
recipes(skip: Int = 0, take: Int = 25): [Recipe!]!
car(id: String!): Car!
cars: [Car!]!
}
type Recipe {
id: ID!
title: String!
description: String
creationDate: Date!
ingredients: [String!]!
}
type Subscription {
recipeAdded: Recipe!
}