Skip to content

Commit

Permalink
Deploy 20230821_121133
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Aug 21, 2023
1 parent 158dfbe commit e1333f5
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 8 deletions.
2 changes: 1 addition & 1 deletion news/rss.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Graphile News]]></title><description><![CDATA[Community funded open source utilities to build powerful, performant and extensible applications rapidly]]></description><link>https://graphile.org</link><generator>GatsbyJS</generator><lastBuildDate>Mon, 07 Aug 2023 15:30:42 GMT</lastBuildDate><item><title><![CDATA[PostGraphile V5 public beta — get involved!]]></title><description><![CDATA[Announced 2023-08-03 by the Graphile Team We need help writing automated tests, validating it works in your real-world
<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Graphile News]]></title><description><![CDATA[Community funded open source utilities to build powerful, performant and extensible applications rapidly]]></description><link>https://graphile.org</link><generator>GatsbyJS</generator><lastBuildDate>Mon, 21 Aug 2023 12:12:05 GMT</lastBuildDate><item><title><![CDATA[PostGraphile V5 public beta — get involved!]]></title><description><![CDATA[Announced 2023-08-03 by the Graphile Team We need help writing automated tests, validating it works in your real-world
applications…]]></description><link>https://graphile.org/news/20230803-postgraphile-v5-beta/</link><guid isPermaLink="false">https://graphile.org/news/20230803-postgraphile-v5-beta/</guid><pubDate>Thu, 03 Aug 2023 01:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;em&gt;Announced 2023-08-03 by the Graphile Team&lt;/em&gt;&lt;/p&gt;
&lt;p class=&apos;intro&apos;&gt;
It’s finally here! The day has come that you can get your hands on an early
Expand Down
2 changes: 1 addition & 1 deletion page-data/postgraphile/computed-columns/page-data.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion page-data/postgraphile/custom-queries/page-data.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion page-data/postgraphile/enums/page-data.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions postgraphile/computed-columns/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@
of calling a function defined in the PostgreSQL schema. This function will
automatically be exposed to the resultant GraphQL schema as a field on the type;
it can accept arguments that influence its result, and may return either a
scalar, record, list or a set. Sets (denoted by <code class="language-text">RETURNS SETOF ...</code>) are exposed
as <a href="/postgraphile/connections/">connections</a>.</p>
scalar, record, <a href="/postgraphile/enums/#functions-returning-table-enums">enum</a>,
list or a set. Sets (denoted by <code class="language-text">RETURNS SETOF ...</code>) are exposed as
<a href="/postgraphile/connections/">connections</a>.</p>
<p><em>Performance note: we inline these function calls into the original <code class="language-text">SELECT</code>
statement, so there's no N+1 issues - it's very efficient.</em></p>
<p>To create a function that PostGraphile will recognise as a computed column, it
Expand Down
3 changes: 2 additions & 1 deletion postgraphile/custom-queries/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
</ul></div></div><div class="edit-this-page" style="display:"><a href="https://github.com/graphile/graphile.github.io/edit/develop/src/pages/postgraphile/custom-queries.md">📝 Suggest improvement/edit this page</a></div><h2 class="mt3">Custom Queries</h2><div><p>You can add root-level <code class="language-text">Query</code> fields to your GraphQL schema using "Custom
Queries". These are PostgreSQL functions, similar to
<a href="/postgraphile/computed-columns/">computed columns</a>, that can return scalars,
records, lists or sets. Sets (denoted by <code class="language-text">RETURNS SETOF ...</code>) are exposed as
records, <a href="/postgraphile/enums/#functions-returning-table-enums">enums</a>, lists or
sets. Sets (denoted by <code class="language-text">RETURNS SETOF ...</code>) are exposed as
<a href="/postgraphile/connections/">connections</a>. The arguments to these functions will
be exposed via GraphQL - named arguments are preferred, if your arguments are
not named we will assign them an auto-generated name such as <code class="language-text">arg1</code>.</p>
Expand Down
Loading

0 comments on commit e1333f5

Please sign in to comment.