Replaced custom Date scalar code with gqlgen's built-in Time scalar.
the build was successful

This commit is contained in:
2019-06-09 12:49:18 +02:00
parent 53c3d4597b
commit 7b253748fe
10 changed files with 29 additions and 68 deletions
+2 -2
View File
@@ -167,6 +167,6 @@ type Subscription {
changes(keys: [ChangeKeyInput!]!): Change!
}
# A Date represents a RFC3339 encoded date with up to millisecond precision.
scalar Date
# A Time represents a RFC3339 encoded date with up to millisecond precision.
scalar Time
+2 -2
View File
@@ -21,7 +21,7 @@ type Change {
keys: [ChangeKey!]!
"The date when the change happened."
date: Date
date: Time
"The changed objects."
objects: [ChangeObject!]!
@@ -74,7 +74,7 @@ input ChangesFilter {
keys: [ChangeKeyInput!]
"Only show changes more recent than this date."
earliestDate: Date
earliestDate: Time
"Limit the amount of results."
limit: Int
+5 -5
View File
@@ -13,13 +13,13 @@ type Chapter {
source: String!
# When the chapter was posted initialy
createdDate: Date!
createdDate: Time!
# The in-universe date and time of the chapter
fictionalDate: Date
fictionalDate: Time
# The date of edit.
editedDate: Date!
editedDate: Time!
"The comment mode."
commentMode: ChapterCommentMode!
@@ -69,7 +69,7 @@ input ChapterAddInput {
source: String!
# Optionally, assign a fictional date for the chapter
fictionalDate: Date
fictionalDate: Time
"The comment mode for the chapter."
commentMode: ChapterCommentMode
@@ -87,7 +87,7 @@ input ChapterEditInput {
source: String
# Set the fictional date for a chapter
fictionalDate: Date
fictionalDate: Time
# Remove the fictional date for a chapter
clearFictionalDate: Boolean
+5 -5
View File
@@ -21,13 +21,13 @@ type Comment {
character: Character
"The fictional (IC) date of the comment."
fictionalDate: Date
fictionalDate: Time
"The date of creation."
createdDate: Date!
createdDate: Time!
"The date of the last edit."
editedDate: Date!
editedDate: Time!
"The markdown source of the comment."
source: String!
@@ -50,7 +50,7 @@ input CommentAddInput {
characterId: String
"Optional in-universe date of the comment."
fictionalDate: Date
fictionalDate: Time
"Optional subject to add to the comment, only shown in some modes."
subject: String
@@ -73,7 +73,7 @@ input CommentEditInput {
characterId: String
"Change the optional in-universe date of the comment."
fictionalDate: Date
fictionalDate: Time
"Set to clear the fictional date."
clearFictionalDate: Boolean
+1 -1
View File
@@ -7,7 +7,7 @@ type File {
kind: String!
# The time of uploading
time: Date!
time: Time!
# Whether the file is publicly listable. Someone with knowledge of the ID
# will still be able to view it, however.
+3 -3
View File
@@ -8,7 +8,7 @@ type Log {
shortId: String!
# The date for a log.
date: Date!
date: Time!
# The channel of a log.
channelName: String!
@@ -60,7 +60,7 @@ input LogsFilter {
# Input for addLog mutation
input LogAddInput {
# The date of the log.
date: Date!
date: Time!
# The channel where the log is set
channel: String!
@@ -116,7 +116,7 @@ input LogImportInput {
timezone: String
"The date of the log, if not provided in the log body."
date: Date
date: Time
"The log body itself."
data: String!
+3 -3
View File
@@ -7,7 +7,7 @@ type Post {
logId: String!
# The date and time of posting
time: Date!
time: Time!
# The kind of post this is. Only "text", "scene" and "action" are RP, while others are annotations and 'commands'.
kind: String!
@@ -28,7 +28,7 @@ input PostAddInput {
logId: String!
# The date and time of posting, in a RFC3339 format with up to a nanosecond's precision
time: Date!
time: Time!
# The kind of post this is. Only "text", "scene" and "action" are RP, while others are annotations and 'commands'.
kind: String!
@@ -46,7 +46,7 @@ input PostEditInput {
id: String!
# The date and time of posting, in a RFC3339 format with up to a nanosecond's precision
time: Date
time: Time
# The kind of post this is. Only "text", "scene" and "action" are RP, while others are annotations and 'commands'.
kind: String
+7 -7
View File
@@ -26,13 +26,13 @@ type Story {
chapters: [Chapter!]!
# The date the story was created.
createdDate: Date!
createdDate: Time!
# The date the story is set in.
fictionalDate: Date
fictionalDate: Time
# The date of the last major update to the story. This being bumped means a new chapter has been added.
updatedDate: Date!
updatedDate: Time!
}
# Filter for stories query.
@@ -53,10 +53,10 @@ input StoriesFilter {
open: Boolean
# The earliest fictionalDate
earliestFictionalDate: Date
earliestFictionalDate: Time
# The latest fictionalDate
latestFictionalDate: Date
latestFictionalDate: Time
# The max amount of stories to get (default: 30)
limit: Int
@@ -85,7 +85,7 @@ input StoryAddInput {
tags: [TagInput!]
# Set the fictional date of the story.
fictionalDate: Date
fictionalDate: Time
}
# Input for the editStory mutation
@@ -111,7 +111,7 @@ input StoryEditInput {
listed: Boolean
# Set the fictional date of the story.
fictionalDate: Date
fictionalDate: Time
# Clear the fictional date of the story.
clearFictionalDate: Boolean