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

Using appropriate code block colouring and minor grammar changes #2

Closed

Conversation

@prashant-shahi
Copy link

commented Oct 9, 2019

  • Replaced code block coloring from sh with graphql for appropriate ones.
  • Added delete mutation example as reference.
  • Other minor grammar changes.
@@ -14,7 +14,7 @@ Specifically, we'll learn about:

First, let's create our Graph.

Go to Ratel's mutate tab, paste the mutation below in the text area, click run.
Go to Ratel's mutate tab, paste the mutation JSON object below in the text area, and click Run.

This comment has been minimized.

Copy link
@hackintoshrao

hackintoshrao Oct 10, 2019

Owner

We have explained about mutations in the last blog. We don't need the JSON object definition. Will add the , and click...

The built-in function `uid()` takes either an `uid` of a node or a list of `uids` as an input argument.
And, it returns nodes with the matching uids on execution.
The `uid` of the nodes can be used to query them back.
The built-in function `uid()` takes either a `uid` of a node or a list of `uids` as an input argument.

This comment has been minimized.

Copy link
@hackintoshrao
And, it returns nodes with the matching uids on execution.
The `uid` of the nodes can be used to query them back.
The built-in function `uid()` takes either a `uid` of a node or a list of `uids` as an input argument.
And it returns nodes with the matching uids on execution.

This comment has been minimized.

Copy link
@hackintoshrao

hackintoshrao Oct 10, 2019

Owner

Since this is optional, I'm retaining this to be the style to be followed consistently.

Let's see it in action.
First, let's copy the uid of the node created for `Michael.`
Let's see it in action.
First, let's copy the uid of the node created for `Michael`.

This comment has been minimized.

Copy link
@hackintoshrao

Go to the query tab, type in the query, and click run.
```sh
Go to the query tab, type in the query below, and click Run.

This comment has been minimized.

Copy link
@hackintoshrao
@@ -267,8 +267,8 @@ That's when we say that the query is deep!

![level 3](./images/level-3.png)

This query is really long!
If you ask, isn't there are an in-built function that makes multi-level deep queries or traversals easy?
This query is really long! If you ask, isn't there any in-built function

This comment has been minimized.

Copy link
@hackintoshrao

hackintoshrao Oct 10, 2019

Owner

I would choose a new line if it saves us from breaking a sentence midway.

@@ -281,7 +281,7 @@ They let you easily traverse a subset of the Graph.
With the following recursive query, we achieve the same result as our last query.
But, with a much better querying experience.

```sh
```graphql

This comment has been minimized.

Copy link
@hackintoshrao
@@ -298,34 +298,31 @@ But, with a much better querying experience.
## Deleting a node

Ratel also makes it easier to compose mutation to delete a node.
Just click on the node and then click the delete button.

This comment has been minimized.

Copy link
@hackintoshrao

Just click on the node and then click the delete button.
In the text area, you should now see a mutation to delete the node.
In the text area, you should now see a mutation to delete the node as follow.

This comment has been minimized.

Copy link
@hackintoshrao

hackintoshrao Oct 10, 2019

Owner

Since the mutation will already be there in the text area. I don't see a need for as follow.


Let's run it.

![delete](./images/delete.gif)


## Wrapping up
In this tutorial, we learned about the CRUD operations using UID's.
We also learned about `recurse()` function.
In this tutorial, we learned about the CRUD operations using UIDs.

This comment has been minimized.

Copy link
@hackintoshrao
@hackintoshrao

This comment has been minimized.

Copy link
Owner

commented Oct 13, 2019

Have addressed all the comments in d578df6 .

@prashant-shahi prashant-shahi deleted the prashant-shahi:prashant/revision branch Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.