https://github.com/opendgraph/vscode-dgraph-snippets
Visual Studio Code snippets for Dgraph
https://github.com/opendgraph/vscode-dgraph-snippets
dgraph graph graphdb snippets
Last synced: about 1 month ago
JSON representation
Visual Studio Code snippets for Dgraph
- Host: GitHub
- URL: https://github.com/opendgraph/vscode-dgraph-snippets
- Owner: OpenDgraph
- Created: 2019-03-11T23:36:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-06T21:22:53.000Z (over 3 years ago)
- Last Synced: 2025-06-12T15:48:16.797Z (9 months ago)
- Topics: dgraph, graph, graphdb, snippets
- Homepage: https://dgraph.io
- Size: 253 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Dgraph snippets for vscode.
This extension for Visual Studio Code adds snippets for Dgraph's Query lang and Mutation lang for RDF files, JSON files e other supported extensions.
e.g:

## Installation
Launch *Quick Open*
-
Linux `Ctrl+P`
-
macOS `⌘P`
-
Windows `Ctrl+P`
Paste the following command and press `Enter`:
```
ext install MichelDiz.vscode-dgraph-snippets
```
## Usage
Simple usage is start to write "RDF" or "dgraph" as they are kind of Prefixes.


### Supported languages
* JSON(.JSON)
* RDF(.RDF)
* javascript(.js)
* typescript(.ts)
## DQL Snippets
| Snippet | Description |
| ----------------------- | --------------------------- |
| `DQL-brackets` | Create curly brackets |
| `DQL` | Query base for all func |
| `DQL_ExpandEdges` | Expand All and expand edges |
| `DQL-Recurse` | Query base for all func |
## RDF Snippets
| Snippet | Description |
| ----------------------- | ------------------------------ |
| `RDF-D` | Basic estructure w/ Blank Node |
| `RDF-D_UID` | Triples to update existing data|
| `RDF-DELETE-SINGLE` | basic estructure for Delete |
| `RDF-DELETE-Multiple` | Delete S P * in RDF |
| `RDF-DELETE-CLEAN` | Clean the whole Node - S * * |
| `RDF-GEO` | Basic estructure for GEO |
## JSON-Dgraph Snippets
| Snippet | Description |
| --------------------------- | ------------------------------- |
| `Dgraph-JSON-Edges-btNodes` | Edges between nodes |
| `Dgraph-JSON-Add-1Edge` | Add one Edge with Blank node |
| `Dgraph-JSON-Facet` | Add a single Facet |
| `Dgraph-JSON-Predicate` | Add a single Predicate |
| `Dgraph-JSON-Delete-Edge` | For delete a Edge |
| `Dgraph-JSON-Delete-S_P_*` | Delete a Edge for a single pred |
| `Dgraph-JSON-Delete-S_*_*` | For delete a whole Node |
| `Dgraph-JSON-1EdgeFacet` | Add Edge and Facet |
| `Dgraph-JSON-List` | Basic JSON list in Dgraph |
| `Dgraph-JSON-BlanKNode` | Add just a Blank Node |
| `Dgraph-JSON-MutationBase` | Dgraph JSON Base mutation |
| `Dgraph-JSON-DeleteBase` | Dgraph JSON Base delete |
## Known Issues
N/A
## Release Notes
### 0.0.1
Initial release of vscode-dgraph-snippets
### 0.0.2
Added language support for .schema file extension.
-----------------------------------------------------------------------------------------------------------