Skip to content

Commit

Permalink
deploy: 6af568a
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Apr 15, 2024
1 parent 5e42544 commit f5e7911
Show file tree
Hide file tree
Showing 327 changed files with 1,630 additions and 1,630 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.31.2">
<meta name="project" content="bonfire_umbrella v0.9.10-cooperation-beta.41">
<meta name="project" content="bonfire_umbrella v0.9.10-cooperation-beta.42">


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

<title>404 — bonfire_umbrella v0.9.10-cooperation-beta.41</title>
<title>404 — bonfire_umbrella v0.9.10-cooperation-beta.42</title>
<link rel="stylesheet" href="dist/html-elixir-JKHCEBPC.css" />


Expand Down Expand Up @@ -61,7 +61,7 @@
bonfire_umbrella
</a>
<div class="sidebar-projectVersion" translate="no">
v0.9.10-cooperation-beta.41
v0.9.10-cooperation-beta.42
</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.31.2">
<meta name="project" content="bonfire_umbrella v0.9.10-cooperation-beta.41">
<meta name="project" content="bonfire_umbrella v0.9.10-cooperation-beta.42">


<title>AbsintheClient.Helpers — bonfire_umbrella v0.9.10-cooperation-beta.41</title>
<title>AbsintheClient.Helpers — bonfire_umbrella v0.9.10-cooperation-beta.42</title>
<link rel="stylesheet" href="dist/html-elixir-JKHCEBPC.css" />


Expand Down Expand Up @@ -59,7 +59,7 @@
bonfire_umbrella
</a>
<div class="sidebar-projectVersion" translate="no">
v0.9.10-cooperation-beta.41
v0.9.10-cooperation-beta.42
</div>
</div>
</div>
Expand Down Expand Up @@ -127,7 +127,7 @@ <h1>
</a>

<span translate="no">AbsintheClient.Helpers</span>
<small class="app-vsn" translate="no">(bonfire_umbrella v0.9.10-cooperation-beta.41)</small>
<small class="app-vsn" translate="no">(bonfire_umbrella v0.9.10-cooperation-beta.42)</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.31.2">
<meta name="project" content="bonfire_umbrella v0.9.10-cooperation-beta.41">
<meta name="project" content="bonfire_umbrella v0.9.10-cooperation-beta.42">


<title>AbsintheClient — bonfire_umbrella v0.9.10-cooperation-beta.41</title>
<title>AbsintheClient — bonfire_umbrella v0.9.10-cooperation-beta.42</title>
<link rel="stylesheet" href="dist/html-elixir-JKHCEBPC.css" />


Expand Down Expand Up @@ -59,7 +59,7 @@
bonfire_umbrella
</a>
<div class="sidebar-projectVersion" translate="no">
v0.9.10-cooperation-beta.41
v0.9.10-cooperation-beta.42
</div>
</div>
</div>
Expand Down Expand Up @@ -127,7 +127,7 @@ <h1>
</a>

<span translate="no">AbsintheClient</span> <small>behaviour</small>
<small class="app-vsn" translate="no">(bonfire_umbrella v0.9.10-cooperation-beta.41)</small>
<small class="app-vsn" translate="no">(bonfire_umbrella v0.9.10-cooperation-beta.42)</small>

</h1>

Expand All @@ -140,29 +140,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="7664760837-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="0575357353-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="7664760837-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="7664760837-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="0575357353-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="0575357353-2">]</span><span class="w">

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

</span><span class="k" data-group-id="7664760837-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="0575357353-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="1992819318-1">(</span><span class="n">conn_or_socket</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="1992819318-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="1992819318-2">}</span><span class="p" data-group-id="1992819318-1">)</span><span class="w"> </span><span class="k" data-group-id="1992819318-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="4159300217-1">(</span><span class="n">conn_or_socket</span><span class="p">,</span><span class="w"> </span><span class="p" data-group-id="4159300217-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="4159300217-2">}</span><span class="p" data-group-id="4159300217-1">)</span><span class="w"> </span><span class="k" data-group-id="4159300217-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="1992819318-3">end</span></code></pre><p>The params for the action will be intercepted by the
</span><span class="k" data-group-id="4159300217-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="0825876365-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="0661889991-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="0825876365-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.15.3/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="9418274690-1">[</span><span class="n">name_matches</span><span class="p" data-group-id="9418274690-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="9418274690-2">[</span><span class="n">age_above</span><span class="p" data-group-id="9418274690-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="1440640350-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="1440640350-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="1440640350-2">}</span><span class="p" data-group-id="1440640350-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="0661889991-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.15.3/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="3433579230-1">[</span><span class="n">name_matches</span><span class="p" data-group-id="3433579230-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="3433579230-2">[</span><span class="n">age_above</span><span class="p" data-group-id="3433579230-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="4085495228-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="4085495228-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="4085495228-2">}</span><span class="p" data-group-id="4085495228-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 @@ -195,9 +195,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="6357018473-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="6357018473-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="6357018473-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="6357018473-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="8658167493-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="8658167493-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="8658167493-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="8658167493-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/3.3.3/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.31.2">
<meta name="project" content="bonfire_umbrella v0.9.10-cooperation-beta.41">
<meta name="project" content="bonfire_umbrella v0.9.10-cooperation-beta.42">


<title>ActivityPub.Actor — bonfire_umbrella v0.9.10-cooperation-beta.41</title>
<title>ActivityPub.Actor — bonfire_umbrella v0.9.10-cooperation-beta.42</title>
<link rel="stylesheet" href="dist/html-elixir-JKHCEBPC.css" />


Expand Down Expand Up @@ -59,7 +59,7 @@
bonfire_umbrella
</a>
<div class="sidebar-projectVersion" translate="no">
v0.9.10-cooperation-beta.41
v0.9.10-cooperation-beta.42
</div>
</div>
</div>
Expand Down Expand Up @@ -127,7 +127,7 @@ <h1>
</a>

<span translate="no">ActivityPub.Actor</span>
<small class="app-vsn" translate="no">(bonfire_umbrella v0.9.10-cooperation-beta.41)</small>
<small class="app-vsn" translate="no">(bonfire_umbrella v0.9.10-cooperation-beta.42)</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.31.2">
<meta name="project" content="bonfire_umbrella v0.9.10-cooperation-beta.41">
<meta name="project" content="bonfire_umbrella v0.9.10-cooperation-beta.42">


<title>ActivityPub.Config.Error — bonfire_umbrella v0.9.10-cooperation-beta.41</title>
<title>ActivityPub.Config.Error — bonfire_umbrella v0.9.10-cooperation-beta.42</title>
<link rel="stylesheet" href="dist/html-elixir-JKHCEBPC.css" />


Expand Down Expand Up @@ -59,7 +59,7 @@
bonfire_umbrella
</a>
<div class="sidebar-projectVersion" translate="no">
v0.9.10-cooperation-beta.41
v0.9.10-cooperation-beta.42
</div>
</div>
</div>
Expand Down Expand Up @@ -127,7 +127,7 @@ <h1>
</a>

<span translate="no">ActivityPub.Config.Error</span> <small>exception</small>
<small class="app-vsn" translate="no">(bonfire_umbrella v0.9.10-cooperation-beta.41)</small>
<small class="app-vsn" translate="no">(bonfire_umbrella v0.9.10-cooperation-beta.42)</small>

</h1>

Expand Down
Loading

0 comments on commit f5e7911

Please sign in to comment.