You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graphql/node-type-registry/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "node-type-registry",
3
-
"version": "0.12.0",
3
+
"version": "0.13.0",
4
4
"description": "Node type definitions for the Constructive blueprint system. Single source of truth for all Authz*, Data*, Relation*, and View* node types.",
/** Declares a spatial predicate between two existing geometry/geography columns. Inserts a metaschema_public.spatial_relation row; the sync_spatial_relation_tags trigger then projects a @spatialRelation smart tag onto the owner column so graphile-postgis' PostgisSpatialRelationsPlugin can expose it as a cross-table filter in GraphQL. Metadata-only: both source_field and target_field must already exist on their tables. Idempotent on (source_table_id, name). One direction per tag — author two RelationSpatial entries if symmetry is desired. */
631
+
exportinterfaceRelationSpatialParams{
632
+
/* Table that owns the relation (the @spatialRelation tag is emitted on the owner column of this table) */
633
+
source_table_id: string;
634
+
/* Geometry/geography column on source_table that carries the @spatialRelation smart tag */
635
+
source_field_id: string;
636
+
/* Table being referenced by the spatial predicate */
637
+
target_table_id: string;
638
+
/* Geometry/geography column on target_table that the predicate is evaluated against */
639
+
target_field_id: string;
640
+
/* Relation name (stable, snake_case). Becomes the generated filter field name in GraphQL (e.g. nearby_clinic). Unique per (source_table_id, name) — idempotency key. */
641
+
name: string;
642
+
/* PostGIS spatial predicate. One of the 8 whitelisted operators. st_dwithin requires param_name. */
/* Parameter name for parametric operators (currently only st_dwithin, which needs a distance argument). Must be NULL for all other operators. Enforced by table CHECK. */
"description": "Declares a spatial predicate between two existing geometry/geography columns. Inserts a metaschema_public.spatial_relation row; the sync_spatial_relation_tags trigger then projects a @spatialRelation smart tag onto the owner column so graphile-postgis' PostgisSpatialRelationsPlugin can expose it as a cross-table filter in GraphQL. Metadata-only: both source_field and target_field must already exist on their tables. Idempotent on (source_table_id, name). One direction per tag — author two RelationSpatial entries if symmetry is desired.",
9
+
"parameter_schema": {
10
+
"type": "object",
11
+
"properties": {
12
+
"source_table_id": {
13
+
"type": "string",
14
+
"format": "uuid",
15
+
"description": "Table that owns the relation (the @spatialRelation tag is emitted on the owner column of this table)"
16
+
},
17
+
"source_field_id": {
18
+
"type": "string",
19
+
"format": "uuid",
20
+
"description": "Geometry/geography column on source_table that carries the @spatialRelation smart tag"
21
+
},
22
+
"target_table_id": {
23
+
"type": "string",
24
+
"format": "uuid",
25
+
"description": "Table being referenced by the spatial predicate"
26
+
},
27
+
"target_field_id": {
28
+
"type": "string",
29
+
"format": "uuid",
30
+
"description": "Geometry/geography column on target_table that the predicate is evaluated against"
31
+
},
32
+
"name": {
33
+
"type": "string",
34
+
"description": "Relation name (stable, snake_case). Becomes the generated filter field name in GraphQL (e.g. nearby_clinic). Unique per (source_table_id, name) — idempotency key."
35
+
},
36
+
"operator": {
37
+
"type": "string",
38
+
"enum": [
39
+
"st_contains",
40
+
"st_within",
41
+
"st_intersects",
42
+
"st_covers",
43
+
"st_coveredby",
44
+
"st_overlaps",
45
+
"st_touches",
46
+
"st_dwithin"
47
+
],
48
+
"description": "PostGIS spatial predicate. One of the 8 whitelisted operators. st_dwithin requires param_name."
49
+
},
50
+
"param_name": {
51
+
"type": "string",
52
+
"description": "Parameter name for parametric operators (currently only st_dwithin, which needs a distance argument). Must be NULL for all other operators. Enforced by table CHECK."
0 commit comments