Skip to content

Commit

Permalink
fix: add Time type definition for gqlgen
Browse files Browse the repository at this point in the history
Gqlgen gets angry because it doesn't recognize the Time datatype. The
solution is to define a separate graphql schema with the Time type
defined before it generates the rest of our schema for us.

See 99designs/gqlgen#1463

We already had gqlgen configured to look for an archivista.graphql file
for this reason (see gqlgen.yaml), but apparently we did not check it
in.
  • Loading branch information
mikhailswift committed Sep 27, 2023
1 parent e24aa2b commit d76ae17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions archivista.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scalar Time

0 comments on commit d76ae17

Please sign in to comment.