Skip to content

Instantly share code, notes, and snippets.

@bshambaugh
Created April 24, 2017 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bshambaugh/0be58ff43f087d0bec813605bdb5d358 to your computer and use it in GitHub Desktop.
Save bshambaugh/0be58ff43f087d0bec813605bdb5d358 to your computer and use it in GitHub Desktop.
Twinql: Query from Browser
GET
XHR
https://databox.me/,proxy [HTTP/2.0 304 Not Modified 191ms]
Headers
Params
Response
Call Stack
t/< http://127.0.0.1:8081/build/bundle.js:7:186892
i http://127.0.0.1:8081/build/bundle.js:7:210677
f/< http://127.0.0.1:8081/build/bundle.js:7:211775
s/</t[e] http://127.0.0.1:8081/build/bundle.js:7:210853
n http://127.0.0.1:8081/build/bundle.js:7:13716
e.default/</< http://127.0.0.1:8081/build/bundle.js:7:13868
w http://127.0.0.1:8081/build/bundle.js:7:202066
e.default/< http://127.0.0.1:8081/build/bundle.js:7:13662
e.fetchGraph</< http://127.0.0.1:8081/build/bundle.js:7:187577
t/< http://127.0.0.1:8081/build/bundle.js:7:163055
i http://127.0.0.1:8081/build/bundle.js:7:210677
f/< http://127.0.0.1:8081/build/bundle.js:7:211775
s/</t[e] http://127.0.0.1:8081/build/bundle.js:7:210853
n http://127.0.0.1:8081/build/bundle.js:7:13716
e.default/</< http://127.0.0.1:8081/build/bundle.js:7:13868
w http://127.0.0.1:8081/build/bundle.js:7:202066
e.default/< http://127.0.0.1:8081/build/bundle.js:7:13662
t http://127.0.0.1:8081/build/bundle.js:7:162751
t/< http://127.0.0.1:8081/build/bundle.js:7:162001
i http://127.0.0.1:8081/build/bundle.js:7:210677
f/< http://127.0.0.1:8081/build/bundle.js:7:211775
s/</t[e] http://127.0.0.1:8081/build/bundle.js:7:210853
n http://127.0.0.1:8081/build/bundle.js:7:13716
e.default/</< http://127.0.0.1:8081/build/bundle.js:7:13868
w http://127.0.0.1:8081/build/bundle.js:7:202066
e.default/< http://127.0.0.1:8081/build/bundle.js:7:13662
t http://127.0.0.1:8081/build/bundle.js:7:161840
t/< http://127.0.0.1:8081/build/bundle.js:7:184237
i http://127.0.0.1:8081/build/bundle.js:7:210677
f/< http://127.0.0.1:8081/build/bundle.js:7:211775
s/</t[e] http://127.0.0.1:8081/build/bundle.js:7:210853
n http://127.0.0.1:8081/build/bundle.js:7:13716
e.default/</< http://127.0.0.1:8081/build/bundle.js:7:13868
w http://127.0.0.1:8081/build/bundle.js:7:202066
e.default/< http://127.0.0.1:8081/build/bundle.js:7:13662
t http://127.0.0.1:8081/build/bundle.js:7:183999
t/< http://127.0.0.1:8081/build/bundle.js:7:181563
i http://127.0.0.1:8081/build/bundle.js:7:210677
f/< http://127.0.0.1:8081/build/bundle.js:7:211775
s/</t[e] http://127.0.0.1:8081/build/bundle.js:7:210853
n http://127.0.0.1:8081/build/bundle.js:7:13716
e.default/</< http://127.0.0.1:8081/build/bundle.js:7:13868
w http://127.0.0.1:8081/build/bundle.js:7:202066
e.default/< http://127.0.0.1:8081/build/bundle.js:7:13662
t http://127.0.0.1:8081/build/bundle.js:7:181248
t/< http://127.0.0.1:8081/build/bundle.js:7:180111
i http://127.0.0.1:8081/build/bundle.js:7:210677
f/< http://127.0.0.1:8081/build/bundle.js:7:211775
s/</t[e] http://127.0.0.1:8081/build/bundle.js:7:210853
n http://127.0.0.1:8081/build/bundle.js:7:13716
e.default/</< http://127.0.0.1:8081/build/bundle.js:7:13868
w http://127.0.0.1:8081/build/bundle.js:7:202066
e.default/< http://127.0.0.1:8081/build/bundle.js:7:13662
t http://127.0.0.1:8081/build/bundle.js:7:179628
t/</< http://127.0.0.1:8081/build/bundle.js:7:176202
Q/n.__iterateUncached/< http://127.0.0.1:8081/build/bundle.js:7:76617
Gr</e.prototype.__iterate/< http://127.0.0.1:8081/build/bundle.js:7:117847
br</e.prototype.__iterate/< http://127.0.0.1:8081/build/bundle.js:7:104177
kr.prototype.iterate http://127.0.0.1:8081/build/bundle.js:7:107502
br</e.prototype.__iterate http://127.0.0.1:8081/build/bundle.js:7:104135
Gr</e.prototype.__iterate http://127.0.0.1:8081/build/bundle.js:7:117806
Q/n.__iterateUncached http://127.0.0.1:8081/build/bundle.js:7:76576
He</e.prototype.__iterate http://127.0.0.1:8081/build/bundle.js:7:94494
.forEach http://127.0.0.1:8081/build/bundle.js:7:121625
e/< http://127.0.0.1:8081/build/bundle.js:7:115721
br</e.prototype.withMutations http://127.0.0.1:8081/build/bundle.js:7:103737
e http://127.0.0.1:8081/build/bundle.js:7:115668
at http://127.0.0.1:8081/build/bundle.js:7:82823
.map http://127.0.0.1:8081/build/bundle.js:7:121883
t/< http://127.0.0.1:8081/build/bundle.js:7:176177
i http://127.0.0.1:8081/build/bundle.js:7:210677
f/< http://127.0.0.1:8081/build/bundle.js:7:211775
s/</t[e] http://127.0.0.1:8081/build/bundle.js:7:210853
n http://127.0.0.1:8081/build/bundle.js:7:13716
n/< http://127.0.0.1:8081/build/bundle.js:7:13816
O/</< http://127.0.0.1:8081/build/bundle.js:7:200949
O/< http://127.0.0.1:8081/build/bundle.js:7:200819
t.exports/c http://127.0.0.1:8081/build/bundle.js:7:195843
-- @deiu
The difference is that when you query from browser, the browser sends all the request for
individual resources. This also means that you will have to deal with authentication yourself,
in the browser.
--- @dan-f
To add to what @deiu said - the same exact query engine (same code) can run in a browser or on a web server.
That "query from browser" button does all the link following directly from your browser.
--- @dan-f
...The query engine is flexible in where it runs; If you run it from within your browser, it uses GETs
for all the resources (by way of an authenticated proxy). ...
@bshambaugh
Copy link
Author

This is what happens when the Query from Browser button is clicked.

@bshambaugh
Copy link
Author

I was observing the call stack and how it matched with what Dan and Andrei said should happen.
And they appear to match.

@bshambaugh
Copy link
Author

qfb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment