Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions graphile/graphile-postgis/src/PostgisRegisterTypesPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const PostgisRegisterTypesPlugin: Plugin = (builder) => {
if (!GEOMETRY_TYPE || !GEOGRAPHY_TYPE) {
return input;
}
console.warn('PostGIS plugin enabled');
// console.warn('PostGIS plugin enabled');

const GeoJSON = getTypeByName(inflection.builtin('GeoJSON')) as GraphQLScalarType | undefined;
if (!GeoJSON) {
Expand Down Expand Up @@ -176,9 +176,9 @@ const PostgisRegisterTypesPlugin: Plugin = (builder) => {
const typeId = type.id;
const typeDetails: GisTypeDetails = getGISTypeDetails(typeModifier);
const { subtype, hasZ, hasM, srid } = typeDetails;
console.warn(
`Getting ${type.name} type ${type.id}|${typeModifier}|${subtype}|${hasZ}|${hasM}|${srid}`
);
// console.warn(
// `Getting ${type.name} type ${type.id}|${typeModifier}|${subtype}|${hasZ}|${hasM}|${srid}`
// );
if (!constructedTypes[typeId]) {
constructedTypes[typeId] = {};
}
Expand Down Expand Up @@ -277,7 +277,7 @@ const PostgisRegisterTypesPlugin: Plugin = (builder) => {
return constructedTypes[typeId][gisTypeKey];
};

console.warn(`Registering handler for ${GEOGRAPHY_TYPE.id}`);
// console.warn(`Registering handler for ${GEOGRAPHY_TYPE.id}`);

pgRegisterGqlInputTypeByTypeId(GEOGRAPHY_TYPE.id, () => GeoJSON);
pg2GqlMapper[GEOGRAPHY_TYPE.id] = {
Expand All @@ -295,7 +295,7 @@ const PostgisRegisterTypesPlugin: Plugin = (builder) => {
return getGisType(GEOGRAPHY_TYPE, typeModifier);
});

console.warn(`Registering handler for ${GEOMETRY_TYPE.id}`);
// console.warn(`Registering handler for ${GEOMETRY_TYPE.id}`);

pgRegisterGqlInputTypeByTypeId(GEOMETRY_TYPE.id, () => GeoJSON);
pg2GqlMapper[GEOMETRY_TYPE.id] = {
Expand Down