This commit is contained in:
Riccardo
2021-01-03 20:53:38 +01:00
parent e72890fe28
commit 61acbf02d8
12 changed files with 282 additions and 241 deletions

View File

@@ -7,7 +7,7 @@ type Query {
orderBy: AppointmentOrderByInput
): Feed!
allProducts: [Product]
# users: [User!]!
users: [User!]!
}
type Feed {
@@ -22,7 +22,17 @@ type Mutation {
description: String!,
start: DateTime!,
end: DateTime!,
): Appointment!
): Appointment!
createProduct(
input: ProductInput
) : Product
updateProduct(
_id: ID!,
input: ProductInput
): Product
deleteProduct(
_id: ID!
) : Product
signup(
email: String!
password: String!
@@ -68,7 +78,7 @@ type Appointment {
type Product {
id: ID!
title: String!
qty: Integer
qty: Int
}
type Follow {
@@ -77,6 +87,12 @@ type Follow {
user: User!
}
input ProductInput {
title: String!
qty: Int
}
input AppointmentOrderByInput {
description: Sort
url: Sort
@@ -88,5 +104,4 @@ enum Sort {
desc
}
scalar Integer
scalar DateTime