Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify Ruru's relation to GraphiQL #1699

Merged
merged 2 commits into from
May 15, 2024
Merged

Clarify Ruru's relation to GraphiQL #1699

merged 2 commits into from
May 15, 2024

Conversation

benjie
Copy link
Member

@benjie benjie commented May 15, 2024

Closes #1625

Description

A reworking of the graphql-http/Express documentation to separate GraphiQL into its own section and clarify the relation to Ruru.

@benjie benjie requested a review from enisdenjo May 15, 2024 13:07
Copy link

vercel bot commented May 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
graphql-github-io ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 1:55pm

To do so, install the `ruru` module with `npm install --save ruru` and then add the following to your `server.js` file, then restart the `node server.js` command:

```js
var { ruruHTML } = require("ruru/server")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use var and not const?

Copy link
Member Author

@benjie benjie May 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's copied from your previous code; but I thought exactly the same thing. (I personally never use var and very rarely use let.)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I prolly did the same, copied from the last code haha. We can make a follow-up PR changing all vars to consts where applicable.

@Urigo Urigo merged commit 5985d0e into source May 15, 2024
4 checks passed
@Urigo Urigo deleted the clarify-ruru branch May 15, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explain a bit more what Ruru is?
3 participants