/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
sample/23-graphql-code-first/schema.gql
37 строк
726 B
Kamil Myśliwiec
sample: update graphql samples
17 янв 2025, 13:10
Не верифицирован
17 янв 2025, 13:10
96cdb82
Код
Авторство
О чём код?
# ------------------------------------------------------ # THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY) # ------------------------------------------------------ directive @upper on FIELD_DEFINITION """recipe""" type Recipe { id: ID! description: String creationDate: Date! ingredients: [String!]! title: String! } """Date custom scalar type""" scalar Date type Query { recipe(id: String!): Recipe! recipes(skip: Int! = 0, take: Int! = 25): [Recipe!]! } type Mutation { addRecipe(newRecipeData: NewRecipeInput!): Recipe! removeRecipe(id: String!): Boolean! } input NewRecipeInput { title: String! description: String ingredients: [String!]! } type Subscription { recipeAdded: Recipe! }