code: function defineScalarTypes(schema: GraphQLSchema): void {
    Object.entries(scalarTypeDefinitions).forEach(([typeName, definition]) => {
      const type = schema.getType(typeName);
      Object.assign(type._scalarConfig, definition);
    });
  }
docs: attach serialization and parsing functions to scalar types defined by baseSchema.graphql