mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
35 lines
674 B
GraphQL
35 lines
674 B
GraphQL
# ------------------------------------------------------
|
|
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
|
|
# ------------------------------------------------------
|
|
|
|
"""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!]!
|
|
}
|
|
|
|
type Recipe {
|
|
id: ID!
|
|
title: String!
|
|
description: String
|
|
creationDate: Date!
|
|
ingredients: [String!]!
|
|
}
|
|
|
|
type Subscription {
|
|
recipeAdded: Recipe!
|
|
}
|