Skip to content

Commit

Permalink
deploy: b55764d
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Oct 20, 2024
1 parent 6a46bff commit dfbe8f9
Show file tree
Hide file tree
Showing 855 changed files with 7,754 additions and 7,754 deletions.
6 changes: 3 additions & 3 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.34.2">
<meta name="project" content="Bonfire v0.9.10-classic-beta.161">
<meta name="project" content="Bonfire v0.9.10-classic-beta.162">


<meta name="robots" content="noindex">

<title>404 — Bonfire v0.9.10-classic-beta.161</title>
<title>404 — Bonfire v0.9.10-classic-beta.162</title>
<link rel="stylesheet" href="dist/html-elixir-F2VRIOKR.css" />


Expand Down Expand Up @@ -56,7 +56,7 @@
Bonfire
</a>
<div class="sidebar-projectVersion" translate="no">
v0.9.10-classic-beta.161
v0.9.10-classic-beta.162
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions AbsintheClient.Helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.34.2">
<meta name="project" content="Bonfire v0.9.10-classic-beta.161">
<meta name="project" content="Bonfire v0.9.10-classic-beta.162">


<title>AbsintheClient.Helpers — Bonfire v0.9.10-classic-beta.161</title>
<title>AbsintheClient.Helpers — Bonfire v0.9.10-classic-beta.162</title>
<link rel="stylesheet" href="dist/html-elixir-F2VRIOKR.css" />


Expand Down Expand Up @@ -54,7 +54,7 @@
Bonfire
</a>
<div class="sidebar-projectVersion" translate="no">
v0.9.10-classic-beta.161
v0.9.10-classic-beta.162
</div>
</div>
</div>
Expand Down Expand Up @@ -132,7 +132,7 @@ <h1>
</a>

<span translate="no">AbsintheClient.Helpers</span>
<small class="app-vsn" translate="no">(Bonfire v0.9.10-classic-beta.161)</small>
<small class="app-vsn" translate="no">(Bonfire v0.9.10-classic-beta.162)</small>

</h1>

Expand Down
30 changes: 15 additions & 15 deletions AbsintheClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.34.2">
<meta name="project" content="Bonfire v0.9.10-classic-beta.161">
<meta name="project" content="Bonfire v0.9.10-classic-beta.162">


<title>AbsintheClient — Bonfire v0.9.10-classic-beta.161</title>
<title>AbsintheClient — Bonfire v0.9.10-classic-beta.162</title>
<link rel="stylesheet" href="dist/html-elixir-F2VRIOKR.css" />


Expand Down Expand Up @@ -54,7 +54,7 @@
Bonfire
</a>
<div class="sidebar-projectVersion" translate="no">
v0.9.10-classic-beta.161
v0.9.10-classic-beta.162
</div>
</div>
</div>
Expand Down Expand Up @@ -132,7 +132,7 @@ <h1>
</a>

<span translate="no">AbsintheClient</span> <small>behaviour</small>
<small class="app-vsn" translate="no">(Bonfire v0.9.10-classic-beta.161)</small>
<small class="app-vsn" translate="no">(Bonfire v0.9.10-classic-beta.162)</small>

</h1>

Expand All @@ -145,29 +145,29 @@ <h1>
<span class="text">Example</span>
</h2>
<p>First, <code class="inline">use AbsintheClient</code>, passing your <code class="inline">schema</code> and
notifying Absinthe to operate in <code class="inline">internal</code> mode:</p><pre><code class="makeup elixir" translate="no"><span class="kd">defmodule</span><span class="w"> </span><span class="nc">MyAppWeb.UserController</span><span class="w"> </span><span class="k" data-group-id="5341868495-1">do</span><span class="w">
notifying Absinthe to operate in <code class="inline">internal</code> mode:</p><pre><code class="makeup elixir" translate="no"><span class="kd">defmodule</span><span class="w"> </span><span class="nc">MyAppWeb.UserController</span><span class="w"> </span><span class="k" data-group-id="7528905437-1">do</span><span class="w">
</span><span class="kn">use</span><span class="w"> </span><span class="nc">MyAppWeb</span><span class="p">,</span><span class="w"> </span><span class="ss">:controller</span><span class="w">
</span><span class="kn">use</span><span class="w"> </span><span class="nc">AbsintheClient</span><span class="p">,</span><span class="w"> </span><span class="ss">schema</span><span class="p">:</span><span class="w"> </span><span class="nc">MyAppWeb.Schema</span><span class="p">,</span><span class="w"> </span><span class="ss">action</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="5341868495-2">[</span><span class="ss">mode</span><span class="p">:</span><span class="w"> </span><span class="ss">:internal</span><span class="p" data-group-id="5341868495-2">]</span><span class="w">
</span><span class="kn">use</span><span class="w"> </span><span class="nc">AbsintheClient</span><span class="p">,</span><span class="w"> </span><span class="ss">schema</span><span class="p">:</span><span class="w"> </span><span class="nc">MyAppWeb.Schema</span><span class="p">,</span><span class="w"> </span><span class="ss">action</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7528905437-2">[</span><span class="ss">mode</span><span class="p">:</span><span class="w"> </span><span class="ss">:internal</span><span class="p" data-group-id="7528905437-2">]</span><span class="w">

</span><span class="c1"># ... actions</span><span class="w">

</span><span class="k" data-group-id="5341868495-1">end</span></code></pre><p>For each action you want Absinthe to process, provide a GraphQL document using
</span><span class="k" data-group-id="7528905437-1">end</span></code></pre><p>For each action you want Absinthe to process, provide a GraphQL document using
the <code class="inline">@graphql</code> module attribute (before the action):</p><pre><code class="makeup elixir" translate="no"><span class="na">@graphql</span><span class="w"> </span><span class="s">&quot;&quot;&quot;
query ($filter: UserFilter) {
users(filter: $filter, limit: 10)
}
&quot;&quot;&quot;</span><span class="w">
</span><span class="kd">def</span><span class="w"> </span><span class="nf">index</span><span class="p" data-group-id="7378180988-1">(</span><span class="n">conn_or_socket</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="7378180988-2">%{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="n">data</span><span class="p" data-group-id="7378180988-2">}</span><span class="p" data-group-id="7378180988-1">)</span><span class="w"> </span><span class="k" data-group-id="7378180988-3">do</span><span class="w">
</span><span class="kd">def</span><span class="w"> </span><span class="nf">index</span><span class="p" data-group-id="3845678735-1">(</span><span class="n">conn_or_socket</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="3845678735-2">%{</span><span class="ss">data</span><span class="p">:</span><span class="w"> </span><span class="n">data</span><span class="p" data-group-id="3845678735-2">}</span><span class="p" data-group-id="3845678735-1">)</span><span class="w"> </span><span class="k" data-group-id="3845678735-3">do</span><span class="w">
</span><span class="n">render</span><span class="w"> </span><span class="n">conn_or_socket</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;index.html&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="w">
</span><span class="k" data-group-id="7378180988-3">end</span></code></pre><p>The params for the action will be intercepted by the
</span><span class="k" data-group-id="3845678735-3">end</span></code></pre><p>The params for the action will be intercepted by the
<code class="inline">AbsintheClient.Action</code> plug, and used as variables for
the GraphQL document you've specified.</p><p>For instance, given a definition for a <code class="inline">:user_filter</code> input object
type like this:</p><pre><code class="makeup elixir" translate="no"><span class="n">input_object</span><span class="w"> </span><span class="ss">:user_filter</span><span class="w"> </span><span class="k" data-group-id="9421968714-1">do</span><span class="w">
type like this:</p><pre><code class="makeup elixir" translate="no"><span class="n">input_object</span><span class="w"> </span><span class="ss">:user_filter</span><span class="w"> </span><span class="k" data-group-id="4003452319-1">do</span><span class="w">
</span><span class="n">field</span><span class="w"> </span><span class="ss">:name_matches</span><span class="p">,</span><span class="w"> </span><span class="ss">:string</span><span class="w">
</span><span class="n">field</span><span class="w"> </span><span class="ss">:age_above</span><span class="p">,</span><span class="w"> </span><span class="ss">:integer</span><span class="w">
</span><span class="n">field</span><span class="w"> </span><span class="ss">:age_below</span><span class="p">,</span><span class="w"> </span><span class="ss">:integer</span><span class="w">
</span><span class="k" data-group-id="9421968714-1">end</span></code></pre><p>And a query that looks like this (assuming you have the normal
<a href="https://hexdocs.pm/plug/1.16.1/Plug.Parsers.html"><code class="inline">Plug.Parsers</code></a> configuration for param parsing):</p><pre><code class="makeup elixir" translate="no"><span class="sc">?f</span><span class="n">ilter</span><span class="p" data-group-id="6544129081-1">[</span><span class="n">name_matches</span><span class="p" data-group-id="6544129081-1">]</span><span class="o">=</span><span class="n">joe</span><span class="o">&amp;</span><span class="n">filter</span><span class="p" data-group-id="6544129081-2">[</span><span class="n">age_above</span><span class="p" data-group-id="6544129081-2">]</span><span class="o">=</span><span class="mi">42</span></code></pre><p>Then Absinthe will receive variable definitions of:</p><pre><code class="makeup elixir" translate="no"><span class="p" data-group-id="5353220365-1">%{</span><span class="s">&quot;filter&quot;</span><span class="w"> </span><span class="p">=&gt;</span><span class="w"> </span><span class="p" data-group-id="5353220365-2">%{</span><span class="s">&quot;name_matches&quot;</span><span class="w"> </span><span class="p">=&gt;</span><span class="w"> </span><span class="s">&quot;joe&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;age_above&quot;</span><span class="w"> </span><span class="p">=&gt;</span><span class="w"> </span><span class="mi">42</span><span class="p" data-group-id="5353220365-2">}</span><span class="p" data-group-id="5353220365-1">}</span></code></pre><p>(For how the string <code class="inline">&quot;42&quot;</code> was converted into <code class="inline">42</code>, see <code class="inline">cast_param/3</code>).</p><p>The params on the <code class="inline">conn_or_socket</code> will then be replaced by the result of the
</span><span class="k" data-group-id="4003452319-1">end</span></code></pre><p>And a query that looks like this (assuming you have the normal
<a href="https://hexdocs.pm/plug/1.16.1/Plug.Parsers.html"><code class="inline">Plug.Parsers</code></a> configuration for param parsing):</p><pre><code class="makeup elixir" translate="no"><span class="sc">?f</span><span class="n">ilter</span><span class="p" data-group-id="0279034885-1">[</span><span class="n">name_matches</span><span class="p" data-group-id="0279034885-1">]</span><span class="o">=</span><span class="n">joe</span><span class="o">&amp;</span><span class="n">filter</span><span class="p" data-group-id="0279034885-2">[</span><span class="n">age_above</span><span class="p" data-group-id="0279034885-2">]</span><span class="o">=</span><span class="mi">42</span></code></pre><p>Then Absinthe will receive variable definitions of:</p><pre><code class="makeup elixir" translate="no"><span class="p" data-group-id="7858038334-1">%{</span><span class="s">&quot;filter&quot;</span><span class="w"> </span><span class="p">=&gt;</span><span class="w"> </span><span class="p" data-group-id="7858038334-2">%{</span><span class="s">&quot;name_matches&quot;</span><span class="w"> </span><span class="p">=&gt;</span><span class="w"> </span><span class="s">&quot;joe&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;age_above&quot;</span><span class="w"> </span><span class="p">=&gt;</span><span class="w"> </span><span class="mi">42</span><span class="p" data-group-id="7858038334-2">}</span><span class="p" data-group-id="7858038334-1">}</span></code></pre><p>(For how the string <code class="inline">&quot;42&quot;</code> was converted into <code class="inline">42</code>, see <code class="inline">cast_param/3</code>).</p><p>The params on the <code class="inline">conn_or_socket</code> will then be replaced by the result of the
execution by Absinthe. The action function can then match against
that result to respond correctly to the user:</p><p>It's up to you to handle the three possible results:</p><ul><li>When there's <code class="inline">:data</code> but no <code class="inline">:errors</code>, everything went perfectly.</li><li>When there's <code class="inline">:errors</code> but no <code class="inline">:data</code>, a validation error occurred and the document could not be
executed.</li><li>When there's <code class="inline">:data</code> and <code class="inline">:errors</code>, partial data is available but some fields reported errors
Expand Down Expand Up @@ -200,9 +200,9 @@ <h1>
unmodified struct values being returned (for example, Ecto schemas),
if no selection set is provided for an object value (or list
thereof), the entire value is returned.</p><p>The template can then use <code class="inline">users</code> as needed:</p><pre><code class="makeup elixir" translate="no"><span class="o">&lt;</span><span class="n">ul</span><span class="o">&gt;</span><span class="w">
</span><span class="o">&lt;</span><span class="p">%</span><span class="o">=</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">user</span><span class="w"> </span><span class="o">&lt;-</span><span class="w"> </span><span class="na">@users</span><span class="w"> </span><span class="k" data-group-id="6763382533-1">do</span><span class="w"> </span><span class="p">%</span><span class="o">&gt;</span><span class="w">
</span><span class="o">&lt;</span><span class="n">li</span><span class="o">&gt;</span><span class="o">&lt;</span><span class="p">%</span><span class="o">=</span><span class="w"> </span><span class="n">link</span><span class="w"> </span><span class="n">user</span><span class="o">.</span><span class="n">full_name</span><span class="p">,</span><span class="w"> </span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="n">user_path</span><span class="p" data-group-id="6763382533-2">(</span><span class="na">@conn_or_socket</span><span class="p">,</span><span class="w"> </span><span class="ss">:show</span><span class="p">,</span><span class="w"> </span><span class="n">user</span><span class="p" data-group-id="6763382533-2">)</span><span class="w"> </span><span class="p">%</span><span class="o">&gt;</span><span class="o">&lt;</span><span class="o">/</span><span class="n">li</span><span class="o">&gt;</span><span class="w">
</span><span class="o">&lt;</span><span class="p">%</span><span class="w"> </span><span class="k" data-group-id="6763382533-1">end</span><span class="w"> </span><span class="p">%</span><span class="o">&gt;</span><span class="w">
</span><span class="o">&lt;</span><span class="p">%</span><span class="o">=</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">user</span><span class="w"> </span><span class="o">&lt;-</span><span class="w"> </span><span class="na">@users</span><span class="w"> </span><span class="k" data-group-id="6239044442-1">do</span><span class="w"> </span><span class="p">%</span><span class="o">&gt;</span><span class="w">
</span><span class="o">&lt;</span><span class="n">li</span><span class="o">&gt;</span><span class="o">&lt;</span><span class="p">%</span><span class="o">=</span><span class="w"> </span><span class="n">link</span><span class="w"> </span><span class="n">user</span><span class="o">.</span><span class="n">full_name</span><span class="p">,</span><span class="w"> </span><span class="ss">to</span><span class="p">:</span><span class="w"> </span><span class="n">user_path</span><span class="p" data-group-id="6239044442-2">(</span><span class="na">@conn_or_socket</span><span class="p">,</span><span class="w"> </span><span class="ss">:show</span><span class="p">,</span><span class="w"> </span><span class="n">user</span><span class="p" data-group-id="6239044442-2">)</span><span class="w"> </span><span class="p">%</span><span class="o">&gt;</span><span class="o">&lt;</span><span class="o">/</span><span class="n">li</span><span class="o">&gt;</span><span class="w">
</span><span class="o">&lt;</span><span class="p">%</span><span class="w"> </span><span class="k" data-group-id="6239044442-1">end</span><span class="w"> </span><span class="p">%</span><span class="o">&gt;</span><span class="w">
</span><span class="o">&lt;</span><span class="o">/</span><span class="n">ul</span><span class="o">&gt;</span></code></pre><p>This is useful for <a href="https://hexdocs.pm/phoenix_html/4.1.1/Phoenix.HTML.html"><code class="inline">Phoenix.HTML</code></a> helper functions that expect
structs with specific fields (especially <code class="inline">form_for</code>).</p><p>One way to think of this change is that, for objects, no selection
set is equivalent to a &quot;splat&quot; operator (except, of course, even
Expand Down
8 changes: 4 additions & 4 deletions ActivityPub.Actor.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.34.2">
<meta name="project" content="Bonfire v0.9.10-classic-beta.161">
<meta name="project" content="Bonfire v0.9.10-classic-beta.162">


<title>ActivityPub.Actor — Bonfire v0.9.10-classic-beta.161</title>
<title>ActivityPub.Actor — Bonfire v0.9.10-classic-beta.162</title>
<link rel="stylesheet" href="dist/html-elixir-F2VRIOKR.css" />


Expand Down Expand Up @@ -54,7 +54,7 @@
Bonfire
</a>
<div class="sidebar-projectVersion" translate="no">
v0.9.10-classic-beta.161
v0.9.10-classic-beta.162
</div>
</div>
</div>
Expand Down Expand Up @@ -132,7 +132,7 @@ <h1>
</a>

<span translate="no">ActivityPub.Actor</span>
<small class="app-vsn" translate="no">(Bonfire v0.9.10-classic-beta.161)</small>
<small class="app-vsn" translate="no">(Bonfire v0.9.10-classic-beta.162)</small>

</h1>

Expand Down
8 changes: 4 additions & 4 deletions ActivityPub.Config.Error.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.34.2">
<meta name="project" content="Bonfire v0.9.10-classic-beta.161">
<meta name="project" content="Bonfire v0.9.10-classic-beta.162">


<title>ActivityPub.Config.Error — Bonfire v0.9.10-classic-beta.161</title>
<title>ActivityPub.Config.Error — Bonfire v0.9.10-classic-beta.162</title>
<link rel="stylesheet" href="dist/html-elixir-F2VRIOKR.css" />


Expand Down Expand Up @@ -54,7 +54,7 @@
Bonfire
</a>
<div class="sidebar-projectVersion" translate="no">
v0.9.10-classic-beta.161
v0.9.10-classic-beta.162
</div>
</div>
</div>
Expand Down Expand Up @@ -132,7 +132,7 @@ <h1>
</a>

<span translate="no">ActivityPub.Config.Error</span> <small>exception</small>
<small class="app-vsn" translate="no">(Bonfire v0.9.10-classic-beta.161)</small>
<small class="app-vsn" translate="no">(Bonfire v0.9.10-classic-beta.162)</small>

</h1>

Expand Down
Loading

0 comments on commit dfbe8f9

Please sign in to comment.