node dnsLagDnsServer.js
node dnsLagServer.js
node dnsLag.js
--- dnsLag.js should timeout if the timeout was affected
node dnsLagDnsServer.js
node dnsLagServer.js
node dnsLag.js
--- dnsLag.js should timeout if the timeout was affected
| // var fs = require("fs"); | |
| // var Module = require("module"); | |
| // var pathCache = JSON.parse(fs.readFileSync("/sv/test/pathCache.json").toString()); | |
| // Object.keys(pathCache).forEach(function(val, i) { | |
| // Module._pathCache[val] = pathCache[val]; | |
| // }); | |
| // console.time("load"); | |
| // // var mongolayer = require("/sv/node_modules/npm/mongolayer/1/node_modules/mongolayer/"); |
| var dns = require("dns"); | |
| var http = require("http"); | |
| var fs = require("fs"); | |
| var net = require("net"); | |
| dns.setServers(["127.0.0.1"]); | |
| var makeCallLookup = function(cb) { | |
| dns.lookup("testSlow.com", cb); | |
| } |
| // in api | |
| var buildUrl = miscLib.memoizeSync(function(args) { | |
| return crmLib.buildMultipleDetailUrl({ | |
| title : args.title, | |
| recid : args.recid, | |
| defaultPath : plugin._def.settings.detail.path, | |
| detailPath : miscLib.varLookup(plugin._detailTypeIndexBySite, [args.detail_type, args.site]), | |
| sitePath : miscLib.varLookup(site, ["siteConfigs", args.site, "urlNoSlash"]), | |
| absolute : args.absolute | |
| }); |
| <!doctype html> | |
| <html> | |
| <head> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.3/require.min.js"></script> | |
| <script> | |
| require.config({ | |
| paths : { | |
| "slow" : "/slow", | |
| }, | |
| waitSeconds : 60 |
| process { http_parser: '2.7.0', | |
| node: '7.10.0', | |
| v8: '5.5.372.43', | |
| uv: '1.11.0', | |
| zlib: '1.2.11', | |
| ares: '1.10.1-DEV', | |
| modules: '51', | |
| openssl: '1.0.2k', | |
| icu: '58.2', | |
| unicode: '9.0', |
| const request = require("request"); | |
| const express = require("express"); | |
| const util = require("util"); | |
| const app = express(); | |
| const requestPromise = util.promisify(request); | |
| const timeoutPromise = util.promisify(setTimeout); | |
| const getImgUrl = function(hostname, comicId, cb) { | |
| request(`https://${hostname}/${comicId}/info.0.json`, function(err, resp, body) { |
Right now most queries are
table(filter: {}, paging : { limit : x, skip : x })
Do we rename paging to options, and put sort inside?
users(filter: {}, options: { limit : x, skip : x, sort : x })
| const { HttpLink } = require("apollo-link-http"); | |
| const { ApolloLink } = require("apollo-link"); | |
| const { setContext } = require("apollo-link-context"); | |
| const { onError } = require("apollo-link-error"); | |
| const fetch = require("node-fetch"); | |
| const express = require("express"); | |
| const { introspectSchema, makeRemoteExecutableSchema, ApolloServer, gql, mergeSchemas } = require("apollo-server-express"); | |
| const { TypeInfo, GraphQLSchema } = require("graphql"); | |
| const assert = require("assert"); | |
| const lodash = require("lodash"); |
Currently our graphql filters only support exact matches { acct_id : "5" }, or { name : "x" }.
I'm adding the feature to expose mongodb advanced filtering mechanics $exists, $gt, $lt, $regex etc. What should the syntax be for adding advanced filters in a way that we can add them to all of our find() endpoints.
standard filtering in graphql and prefix
{
auth {
products(filter: { url : "http://url.is/exactly/this" })
}