Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent error after hot reload: Operation is not valid due to the current state of the object. (DateTimeType) #1227

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions backend/LexBoxApi/GraphQL/GraphQlSetupKernel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ public static void AddLexGraphQL(this IServiceCollection services, IHostEnvironm
options.IncludeExceptionDetails = true;
})
.AddType<DbErrorCode>()
.AddType(new DateTimeType("DateTime"))
.AddType(new UuidType("UUID"))
.AddType(new DateTimeType("timestamptz"))
.AddType(new UuidType("uuid"))
hahn-kev marked this conversation as resolved.
Show resolved Hide resolved
.AddInstrumentation(options =>
{
options.IncludeDocument = true;
Expand Down
7 changes: 2 additions & 5 deletions frontend/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1248,13 +1248,10 @@ directive @listSize("The `assumedSize` argument can be used to statically define
"The `@specifiedBy` directive is used within the type system definition language to provide a URL for specifying the behavior of custom scalar definitions."
directive @specifiedBy("The specifiedBy URL points to a human-readable specification. This field will only read a result for scalar types." url: String!) on SCALAR

"The `DateTime` scalar represents an ISO-8601 compliant date time type."
scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time")

"The `Long` scalar type represents non-fractional signed whole 64-bit numeric values. Long can represent values between -(2^63) and 2^63 - 1."
scalar Long

scalar UUID

scalar timestamptz @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time")

scalar uuid
scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
Loading