Started with Moment and datetime
This commit is contained in:
@@ -19,11 +19,15 @@ type Feed {
|
||||
|
||||
type Mutation {
|
||||
createAppointment(
|
||||
title: String!,
|
||||
description: String!,
|
||||
timeStart: DateTime!,
|
||||
timeEnd: DateTime!,
|
||||
input: AppointmentInput
|
||||
): Appointment!
|
||||
updateAppointment(
|
||||
_id: ID!,
|
||||
input: AppointmentInput
|
||||
): Appointment
|
||||
deleteAppointment(
|
||||
_id: ID!
|
||||
) : Appointment
|
||||
createProduct(
|
||||
input: ProductInput
|
||||
) : Product
|
||||
@@ -65,23 +69,39 @@ type User {
|
||||
appointments: [Appointment!]!
|
||||
}
|
||||
|
||||
# Appointment model
|
||||
type Appointment {
|
||||
_id: ID!
|
||||
title: String!
|
||||
description: String!
|
||||
timeStart: DateTime!
|
||||
timeEnd: DateTime!
|
||||
# dateStart: Date!
|
||||
# dateEnd: Date!
|
||||
timeStart: Time!
|
||||
timeEnd: Time!
|
||||
deleted: Boolean
|
||||
# createdBy: User
|
||||
# follows: [Follow!]!
|
||||
# createdAt: DateTime!
|
||||
}
|
||||
input AppointmentInput {
|
||||
title: String!
|
||||
description: String!
|
||||
# dateStart: Date!
|
||||
# dateEnd: Date!
|
||||
timeStart: Time!
|
||||
timeEnd: Time!
|
||||
}
|
||||
|
||||
# Product model
|
||||
type Product {
|
||||
_id: ID!
|
||||
title: String!
|
||||
qty: Int
|
||||
}
|
||||
input ProductInput {
|
||||
title: String!
|
||||
qty: Int
|
||||
}
|
||||
|
||||
type Follow {
|
||||
_id: ID!
|
||||
@@ -89,11 +109,6 @@ type Follow {
|
||||
user: User!
|
||||
}
|
||||
|
||||
input ProductInput {
|
||||
title: String!
|
||||
qty: Int
|
||||
}
|
||||
|
||||
|
||||
input AppointmentOrderByInput {
|
||||
description: Sort
|
||||
@@ -107,3 +122,4 @@ enum Sort {
|
||||
}
|
||||
|
||||
scalar DateTime
|
||||
scalar Time
|
||||
|
||||
Reference in New Issue
Block a user