Skip to content

Instantly share code, notes, and snippets.

View JofArnold's full-sized avatar

Jof JofArnold

View GitHub Profile
@JofArnold
JofArnold / Dev.sol
Last active October 13, 2021 05:59
Developer DAO smart contract
/**
*Submitted for verification at Etherscan.io on 2021-08-27
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
/**
*Submitted for verification at Etherscan.io on 2021-11-13
*/
pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
/**
* @dev Interface of the ERC165 standard, as defined in the
@JofArnold
JofArnold / 00-README.md
Last active February 24, 2025 14:59
Generating GraphQL queries from schemas

Uses Neo4j example graph with Apollo Server.

Passed the full introspected schema to Claude Chat.

First reply used an invalid filter but asked it to look at PersonWhere again and it worked

Prompt

Using the following schema, create a graphql query that gets me all the people who've worked in movies alongside Keanu Reeves

Consider a typical custom resolver with inline cypher

import { Driver } from 'neo4j-driver';

interface ResolverContext {
  driver: Driver;
}

export const myCustomResolver = async (