graphql-composer
Version:
Create your GraphQL API using composition!
29 lines • 685 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.NullableType = exports.Nullable = exports.N = void 0;
/**
* Create a nullable type from an existing one
* @param type The type to convert
*/
function N(type) {
return new NullableType(type);
}
exports.N = N;
/**
* Create a nullable type from an existing one
* @param type The type to convert
*/
function Nullable(type) {
return new NullableType(type);
}
exports.Nullable = Nullable;
class NullableType {
constructor(type) {
this._type = type;
}
get type() {
return this._type;
}
}
exports.NullableType = NullableType;
//# sourceMappingURL=Nullable.js.map
;