Skip to content

Commit

Permalink
down to custom mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
jemgillam committed Feb 17, 2025
1 parent f39b941 commit e83986b
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion postgraphile/website/postgraphile/bundling-webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Bundling with webpack
---

# Bundling PostGraphile with Webpack
# Bundling PostGraphile with webpack

In V5, we recommend that you export your schema with `graphile-export`
(assuming all your plugins support it, which they may not) and then bundle the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Community contributions
The community contributes to PostGraphile development in many ways.

One of the common ways of contributing is to write a plugin, see
[Community Plugins](./community-plugins) for a list of some of the plugins that
[Community plugins](./community-plugins) for a list of some of the plugins that
have been made open source by the community.

Community members also help each other on our
Expand Down
2 changes: 1 addition & 1 deletion postgraphile/website/postgraphile/community-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Community plugins
---

# PostGraphile Community Plugins
# PostGraphile community plugins

Community members can write plugins for PostGraphile that extends its
functionality; this page lists some of them. Issues with these plugins should be
Expand Down
2 changes: 1 addition & 1 deletion postgraphile/website/postgraphile/computed-columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,4 @@ which can be queried like:

### Advice

See the advice in [the Custom Queries article](./custom-queries/#advice).
See the advice in [the custom queries article](./custom-queries/#advice).
4 changes: 2 additions & 2 deletions postgraphile/website/postgraphile/custom-mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Custom mutations
---

PostGraphile automatically generates [CRUD Mutations](./crud-mutations) for
PostGraphile automatically generates [CRUD mutations](./crud-mutations) for
you; but it’s rare that these will cover all your needs — and many people just
disable them outright. Custom mutations enable you to write exactly the business
logic you need with access to all of your data all wrapped up in a PostgreSQL
Expand Down Expand Up @@ -99,7 +99,7 @@ default value will be optional. For example: `CREATE FUNCTION foo(a int, b int,
c int = 0, d int = null)...` would give a mutation `foo(a: Int!, b: Int!, c:
Int, d: Int)`.

### Bulk Insert Example
### Bulk insert example

Here’s an example of a custom mutation that performs a “bulk insert” — inserting
and returning a set of records:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Best practices
---

# PostGraphile Best Practices
# PostGraphile best practices

This guide is a work in progress. If you have ideas for best practices, please
use the "Suggest improvements to this page" link above to submit them, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Bundling with Webpack
---

# Bundling PostGraphile with Webpack
# Bundling PostGraphile with webpack

PostGraphile is designed to be ran as a standard Node.js application on the
server, using the built in `require` functionality which reads code from the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Community contributions
The community contributes to PostGraphile development in many ways.

One of the common ways of contributing is to write a plugin, see
[Community Plugins](./community-plugins) for a list of some of the plugins that
[Community plugins](./community-plugins) for a list of some of the plugins that
have been made open source by the community.

Community members also help each other on our
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Community plugins
---

# PostGraphile Community Plugins
# PostGraphile community plugins

Community members can write plugins for PostGraphile that extends its
functionality; this page lists some of them. Issues with these plugins should be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ which can be queried like:

### Advice

See the advice in [the Custom Queries article](./custom-queries/#advice).
See the advice in [the custom queries article](./custom-queries/#advice).
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Custom mutations
---

PostGraphile automatically generates [CRUD Mutations](./crud-mutations) for
PostGraphile automatically generates [CRUD mutations](./crud-mutations) for
you; but it's rare that these will cover all your needs - and many people just
disable them outright. Custom mutations enable you to write exactly the business
logic you need with access to all of your data all wrapped up in a PostgreSQL
Expand Down Expand Up @@ -98,7 +98,7 @@ app.use(
To use it with the CLI you need to do similar using the `.postgraphilerc.js`
file.

### Bulk Insert Example
### Bulk insert example

Here's an example of a custom mutation that performs a "bulk insert" - inserting
and returning a set of records:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
title: Bundling PostGraphile with webpack
title: Bundling with webpack
---

# Bundling PostGraphile with webpack

In V5, we recommend that you export your schema with `graphile-export`
(assuming all your plugins support it, which they may not) and then bundle the
result. Here's an example webpack configuration you might use:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Community contributions
The community contributes to PostGraphile development in many ways.

One of the common ways of contributing is to write a plugin, see
[Community Plugins](./community-plugins) for a list of some of the plugins that
[Community plugins](./community-plugins) for a list of some of the plugins that
have been made open source by the community.

Community members also help each other on our
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ which can be queried like:

### Advice

See the advice in [the Custom Queries article](./custom-queries/#advice).
See the advice in [the custom queries article](./custom-queries/#advice).
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Custom mutations
---

PostGraphile automatically generates [CRUD Mutations](./crud-mutations) for
PostGraphile automatically generates [CRUD mutations](./crud-mutations) for
you; but it's rare that these will cover all your needs - and many people just
disable them outright. Custom mutations enable you to write exactly the business
logic you need with access to all of your data all wrapped up in a PostgreSQL
Expand Down Expand Up @@ -99,7 +99,7 @@ default value will be optional. For example: `CREATE FUNCTION foo(a int, b int,
c int = 0, d int = null)...` would give a mutation `foo(a: Int!, b: Int!, c:
Int, d: Int)`.

### Bulk Insert Example
### Bulk insert example

Here's an example of a custom mutation that performs a "bulk insert" - inserting
and returning a set of records:
Expand Down

0 comments on commit e83986b

Please sign in to comment.