Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
20 lines
989 B
Plaintext
20 lines
989 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.GraphQLDateTimeISO = exports.GraphQLDateTimeISOConfig = void 0;
|
|
const graphql_1 = require("graphql");
|
|
const DateTime_js_1 = require("./DateTime.js");
|
|
exports.GraphQLDateTimeISOConfig = {
|
|
...DateTime_js_1.GraphQLDateTimeConfig,
|
|
name: 'DateTimeISO',
|
|
description: 'A date-time string at UTC, such as 2007-12-03T10:15:30Z, ' +
|
|
'compliant with the `date-time` format outlined in section 5.6 of ' +
|
|
'the RFC 3339 profile of the ISO 8601 standard for representation ' +
|
|
'of dates and times using the Gregorian calendar.' +
|
|
'This scalar is serialized to a string in ISO 8601 format and parsed from a string in ISO 8601 format.',
|
|
serialize(value) {
|
|
const date = DateTime_js_1.GraphQLDateTimeConfig.serialize(value);
|
|
return date.toISOString();
|
|
},
|
|
};
|
|
exports.GraphQLDateTimeISO = new graphql_1.GraphQLScalarType(exports.GraphQLDateTimeISOConfig);
|