Skip to content

Instantly share code, notes, and snippets.

View dhonig's full-sized avatar

Daniel Honig dhonig

View GitHub Profile
query{
products{
id
images{
attachment {
url
}
}
optionTypes {
edges {
@dhonig
dhonig / search.js
Created January 11, 2020 21:47
mongosearch
// Requires official Node.js MongoDB Driver 3.0.0+
var mongodb = require("mongodb");
var client = mongodb.MongoClient;
var url = "mongodb://host:port/";
client.connect(url, function (err, client) {
var db = client.db("test");
var collection = db.collection("mains");