graphile / graphile/crystal

Eliminate constant expressions from schema export

Open
#2,831 0 comments 0 reactions 0 assignees View on GitHub
💅 enhancement
Dominant language
TypeScript
Stars
12.9k
Forks
625
Avg merge
5h 23m
Merged PRs (30d)
24

Description

```ts
const executor = new PgExecutor({
name: "main",
context() {
const ctx = context();
return object({
pgSettings: "pgSettings" != null ? ctx.get("pgSettings") : constant(null),
withPgClient: ctx.get("withPgClient")
});
}
});
```

The expression `"pgSettings" != null ? ctx.get("pgSettings") : constant(null)` can be replaced with just `ctx.get("pgSettings")`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.