From 30cd084623a9577ec72a672c3921e4396d7fd301 Mon Sep 17 00:00:00 2001
From: uhyo extensions.codegenScalarType
metadata. We are not aware of
any other libraries that provide such metadata though.
+ At runtime, you should reuse the GraphQLSchema
instance you
+ supplied to nitrogql. To do so, merge that instance with the other parts
+ of your schema and your resolver implementations.{" "}
+
+ @graphql-tools/schema
+ {" "}
+ provides a convenient way to do so. For example:
+
+ See{" "} + + our Next.js example + {" "} + for a working example. +
- Having a single source of truth for custom scalar types is always a good - thing. It is good idea for libraries to provide such metadata so that - the runtime implementation and the TypeScript type definition are always - in sync. This release is a significant step towards that direction. + Having a single source of truth is always preferable. Custom scalar + types are no exception. Therefore, it is good idea for libraries to + provide such metadata so that the runtime implementation and the + TypeScript type definition are always in sync. This release is a + significant step towards that direction.