Ocelot-Social/assets/neo4j-graphql-js.html-C1jNzrZg.js
2025-07-18 13:37:17 +00:00

2 lines
2.8 KiB
JavaScript

import{_ as s}from"./plugin-vue_export-helper-DlAUqK2U.js";import{c as a,a as n,o as i}from"./app-42vVvAb-.js";const r={};function t(l,e){return i(),a("div",null,e[0]||(e[0]=[n('<h1 id="neo4j-graphql-js" tabindex="-1"><a class="header-anchor" href="#neo4j-graphql-js"><span>neo4j-graphql.js</span></a></h1><p>We use an npm package called <code>neo4j-graphql-js</code> as a cypher query builder. This library also generates resolvers for graphql queries, unless we implement them ourselves.</p><h2 id="debugging" tabindex="-1"><a class="header-anchor" href="#debugging"><span>Debugging</span></a></h2><p>As you can see in their <a href="https://github.com/neo4j-graphql/neo4j-graphql-js" target="_blank" rel="noopener noreferrer">documentation</a> it is possible to log out the generated cypher statements. To do so, run the backend like this:</p><div class="language-sh line-numbers-mode" data-highlighter="shiki" data-ext="sh" data-title="sh" style="--shiki-light:#383A42;--shiki-dark:#abb2bf;--shiki-light-bg:#FAFAFA;--shiki-dark-bg:#282c34;"><pre class="shiki shiki-themes one-light one-dark-pro vp-code"><code><span class="line"><span style="--shiki-light:#E45649;--shiki-dark:#E06C75;">DEBUG</span><span style="--shiki-light:#383A42;--shiki-dark:#56B6C2;">=</span><span style="--shiki-light:#50A14F;--shiki-dark:#98C379;">neo4j-graphql-js</span><span style="--shiki-light:#4078F2;--shiki-dark:#61AFEF;"> yarn</span><span style="--shiki-light:#50A14F;--shiki-dark:#98C379;"> run</span><span style="--shiki-light:#50A14F;--shiki-dark:#98C379;"> dev</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div></div></div>',5)]))}const p=s(r,[["render",t],["__file","neo4j-graphql-js.html.vue"]]),d=JSON.parse('{"path":"/backend/neo4j-graphql-js.html","title":"neo4j-graphql.js","lang":"en-US","frontmatter":{},"headers":[{"level":2,"title":"Debugging","slug":"debugging","link":"#debugging","children":[]}],"git":{"createdTime":1752750935000,"updatedTime":1752750935000,"contributors":[{"name":"dependabot[bot]","email":"49699333+dependabot[bot]@users.noreply.github.com","commits":1}]},"readingTime":{"minutes":0.23,"words":68},"filePathRelative":"backend/neo4j-graphql-js.md","localizedDate":"July 17, 2025","excerpt":"\\n<p>We use an npm package called <code>neo4j-graphql-js</code> as a cypher query builder. This\\nlibrary also generates resolvers for graphql queries, unless we implement them\\nourselves.</p>\\n<h2>Debugging</h2>\\n<p>As you can see in their <a href=\\"https://github.com/neo4j-graphql/neo4j-graphql-js\\" target=\\"_blank\\" rel=\\"noopener noreferrer\\">documentation</a>\\nit is possible to log out the generated cypher statements. To do so, run the\\nbackend like this:</p>"}');export{p as comp,d as data};