Skip to content

Commit 58ae1da

Browse files
committed
add comment to persistQuery to explain app ids
1 parent 43193fa commit 58ae1da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/persistQuery.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ async function persistQuery(queryText) {
8484

8585
const variables = {
8686
query: print(transformedAst),
87+
// This is your app's app id, edit `/.env` to change it
8788
appId: process.env.RAZZLE_ONEGRAPH_APP_ID,
8889
accessToken: accessToken || null,
8990
freeVariables: [...freeVariables],
@@ -99,6 +100,10 @@ async function persistQuery(queryText) {
99100
{
100101
hostname: 'serve.onegraph.com',
101102
port: 443,
103+
// This is onedash's app id. If you followed the instructions in the
104+
// README to create the `OG_DASHBOARD_ACCESS_TOKEN`, then this is the
105+
// app id associated with the token that lets you persist queries.
106+
// Don't change this to your app id.
102107
path: '/graphql?app_id=0b066ba6-ed39-4db8-a497-ba0be34d5b2a',
103108
method: 'POST',
104109
headers: {

0 commit comments

Comments
 (0)