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: docs/graphql/manual/api-reference/query.rst
+36
Original file line number
Diff line number
Diff line change
@@ -361,6 +361,42 @@ Checking for ``null`` values :
361
361
362
362
- ``_is_null`` (takes true/false as values)
363
363
364
+
PostGIS related operators on GEOMETRY columns :
365
+
366
+
.. list-table::
367
+
:header-rows: 1
368
+
369
+
* - Operator
370
+
- PostGIS equivalent
371
+
* - ``_st_contains``
372
+
- ``ST_Contains``
373
+
* - ``_st_crosses``
374
+
- ``ST_Crosses``
375
+
* - ``_st_equals``
376
+
- ``ST_Equals``
377
+
* - ``_st_intersects``
378
+
- ``ST_Intersects``
379
+
* - ``_st_overlaps``
380
+
- ``ST_Overlaps``
381
+
* - ``_st_touches``
382
+
- ``ST_Touches``
383
+
* - ``_st_within``
384
+
- ``ST_Within``
385
+
* - ``_st_d_within``
386
+
- ``ST_DWithin``
387
+
388
+
(For more details on what these operators do, refer to `PostGIS docs <http://postgis.net/workshops/postgis-intro/spatial_relationships.html>`__.)
389
+
390
+
.. Note::
391
+
1. All operators take a json representation of ``geometry/geography`` values. Also see :doc:`here <../queries/query-filters>` for more query examples on these operators
392
+
2. Input value for ``_st_d_within`` operator is an object:-
Copy file name to clipboardExpand all lines: docs/graphql/manual/queries/query-filters.rst
+130
Original file line number
Diff line number
Diff line change
@@ -473,6 +473,136 @@ Fetch a list of authors whose names begin with A or C (``similar`` is case-sensi
473
473
}
474
474
}
475
475
476
+
PostGIS topology operators
477
+
--------------------------
478
+
The ``_st_contains``, ``_st_crosses``, ``_st_equals``, ``_st_intersects``, ``_st_overlaps``,
479
+
``_st_touches``, ``_st_within`` and ``_st_d_within`` operators are used to filter ``geometry`` like columns.
480
+
For more details on what these operators do, refer to `PostGIS docs <http://postgis.net/workshops/postgis-intro/spatial_relationships.html>`__.
481
+
482
+
Use ``json`` (`GeoJSON <https://tools.ietf.org/html/rfc7946>`_) representation of ``geometry`` values in ``variables`` as shown in the following examples
483
+
484
+
485
+
Example: _st_within
486
+
^^^^^^^^^^^^^^^^^^^^^
487
+
Fetch a list of geometry values which are within the given ``polygon`` value
0 commit comments