Skip to content

Instantly share code, notes, and snippets.

@samberic
samberic / example.js
Created December 1, 2022 12:55
Minimum reproduce of mercurius issue
const Fastify = require('fastify');
const mercurius = require('mercurius');
const path = require('path');
const example = Fastify();
const schema = `
extend type Query {
test: Boolean!
}
extend type Mutation {
#!/bin/sh
# to auto-run:
# curl -fsSL https://gist.github.com/samberic/4bc1c726df934dccb307/download | tar -xf- && bash 4bc1c726df934dccb307*/setup.sh && rm -r 4bc1c726df934dccb307*
##### Preparations #####
#-----------------------
# Description is available at http://mlayer.org/tech/2014/11/25/setup-mac-os-x.html
# install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install caskroom/cask/brew-cask # makes available to install apps as packages
@samberic
samberic / amazon-test.clj
Last active December 4, 2017 21:05
Amazon Product Advertising API using Clojure
(ns yswrl.test.swirls.amazon-test
(:use clojure.test)
(:require [yswrl.test.scaffolding :refer :all]
[yswrl.swirls.amazon :as amazon])
(:use clj-http.fake)
(:use yswrl.fake.faker))
(deftest amazon-test
(testing "url Params are in order"