graphile / graphile/postgis

Explain how to require @graphile/postgis in library mode with CommonJS

Open
#33 4 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
TypeScript
Stars
90
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm not sure if this is the right place to ask such a question but I do apologies in advance.

but doing the following in my code:
```js
const PostgisPlugin = require("@graphile/postgis");
...
const postgraphileOpt = {
watchPg: true,
retryOnInitFail: true,
graphiql: true,
enhanceGraphiql: true,
graphiqlRoute: "/schema",
enableCors: true,
disableQueryLog: true,
appendPlugins: [ConnectionFilterPlugin, PostgisPlugin]
};
```
produced this error:
```sh
$ Error: Option 'appendPlugins' should be an array of functions, found 'object' at index 1 ...
```

May I know if I'm doing it completely wrong or should I not have used it within the library but in the CLI instead?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.