Skip to content
This repository was archived by the owner on Oct 17, 2020. It is now read-only.

Commit e87d4b0

Browse files
committed
fix(glitch): add a glitch iframe
1 parent 82877a9 commit e87d4b0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

content/GraphQL-Binding/01-Overview.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ Here are three scenarios how this binding could be used:
8585

8686
Inside a Node script, you could install the `graphql-binding-example` via `npm` or `yarn` and then use it inside the script:
8787

88-
<!-- Copy and Paste Me -->
88+
8989
<div class="glitch-embed-wrap" style="height: 420px; width: 100%;">
9090
<iframe src="https://glitch.com/embed/#!/embed/gem-darkness?path=server.js&previewSize=0&sidebarCollapsed=true" alt="gem-darkness on glitch" style="height: 100%; width: 100%; border: 0;"></iframe>
9191
</div>
9292

93+
9394
In this example, `createUser` takes two arguments:
9495

9596
1. The **arguments** for the mutation
@@ -107,13 +108,10 @@ mutation {
107108

108109
Similarly, you could write script that sends the `users` query via the invocation of a binding function:
109110

110-
```js
111-
const userBinding = require('graphql-binding-users').default
111+
<div class="glitch-embed-wrap" style="height: 420px; width: 100%;">
112+
<iframe src="https://glitch.com/embed/#!/embed/boulder-earwig?path=server.js&previewSize=0&sidebarCollapsed=true" alt="boulder-earwig on glitch" style="height: 100%; width: 100%; border: 0;"></iframe>
113+
</div>
112114

113-
// Retrieve all `User`s
114-
userBinding.query.users({}, `{ id name }`)
115-
.then(users => console.log(`Retrieved all users: ${users}`))
116-
```
117115

118116
This time, no arguments are being passed and the selection set asks for the `id` and the `name` of the `User`s being returned.
119117

0 commit comments

Comments
 (0)