MCPcopy
hub / github.com/stackshareio/awesome-stacks / getNode

Function getNode

src/components/mdx/github.js:28–39  ·  view source on GitHub ↗
(nameWithOwner, data)

Source from the content-addressed store, hash-verified

26`
27
28function getNode(nameWithOwner, data) {
29 var tool;
30 data.allMdx.edges.forEach((edge) => {
31 const tools = edge.node.fields.gitHubTools;
32 tools.forEach((_tool) => {
33 if (_tool.nameWithOwner === nameWithOwner) {
34 tool = _tool;
35 }
36 });
37 });
38 return tool;
39}
40
41export default GitHub

Callers 3

GitHubFunction · 0.70
gatsby-node.jsFile · 0.50
gatsby-node.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected