Skip to content

extend plugin for additional feature: st_dwithin #17

Open
@ireznik

Description

I would like to extend the plugin to add the function st_dwithin.
The postgis function is described here: https://postgis.net/docs/ST_DWithin.html
I already made the following changes:

Use this draft to compare: #16

Modified the plugin itself by adding the function, typenames and other properties:
https://github.com/graphile-contrib/postgraphile-plugin-connection-filter-postgis/pull/16/files#diff-3a39e3760ed128b03242f96a7d1ceeefR140

Modified fixtures:
https://github.com/graphile-contrib/postgraphile-plugin-connection-filter-postgis/pull/16/files#diff-59621d53d50374d9716154d866c9e7e9R10

With the modified geography fixtures I am currently getting some output:
[GraphQLError: function st_dwithin(geography, geography) does not exist]

In the geometry.graphql fixtures I added a second input value named $radius;
https://github.com/graphile-contrib/postgraphile-plugin-connection-filter-postgis/pull/16/files#diff-6638aac95b170cc236faa41b2939f63cR1
Which results in the following error:
[GraphQLError: Syntax Error: Expected Name, found $]

Additional notes:
I've updated the pg library to work with node v14

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions