Option 1)
I tried changing my code to regular DQL, but I am not sure how. The previous query does not seem to work. What do I change this to, as I do not have an understanding of translating this to triples:
const results = await dql.query(`mutation addPost($course: AddPostInput!) {
addPost(input: [$post]) {
course {
id
name
description
published
}
}
}`, {"post": newArgs});
console.log(JSON.stringify(results.data));
return results.data.addPost.post[0].id
}
Option 2)
How do you override the authHeader with your own JWT? I cannot use the variables in:
# Dgraph.Authorization in regular javascript…
Would I change the global.USER variable? This does not work…