type User {
id: ID!
user_name: String @search(by: [trigram, hash])
user_handle: String @search(by: [hash])
authored: [Tweet] @hasInverse(field: author)
}
{"coord": { "lon": 139,"lat": 35}, | |
"weather": [ | |
{ | |
"id": 800, | |
"main": "Clear", | |
"description": "clear sky", | |
"icon": "01n" | |
} | |
], | |
"base": "stations", |
{ | |
"html_attributions" : [], | |
"next_page_token" : "CpQCAgEAAFxg8o-eU7_uKn7Yqjana-HQIx1hr5BrT4zBaEko29ANsXtp9mrqN0yrKWhf-y2PUpHRLQb1GT-mtxNcXou8TwkXhi1Jbk-ReY7oulyuvKSQrw1lgJElggGlo0d6indiH1U-tDwquw4tU_UXoQ_sj8OBo8XBUuWjuuFShqmLMP-0W59Vr6CaXdLrF8M3wFR4dUUhSf5UC4QCLaOMVP92lyh0OdtF_m_9Dt7lz-Wniod9zDrHeDsz_by570K3jL1VuDKTl_U1cJ0mzz_zDHGfOUf7VU1kVIs1WnM9SGvnm8YZURLTtMLMWx8-doGUE56Af_VfKjGDYW361OOIj9GmkyCFtaoCmTMIr5kgyeUSnB-IEhDlzujVrV6O9Mt7N4DagR6RGhT3g1viYLS4kO5YindU6dm3GIof1Q", | |
"results" : [ | |
{ | |
"geometry" : { | |
"location" : { | |
"lat" : -33.867217, | |
"lng" : 151.195939 | |
} |
{ | |
"name": "dgraph-reason", | |
"reason": { "react-jsx": 3 }, | |
"bsc-flags": ["-bs-super-errors"], | |
"sources": [ | |
{ | |
"dir": "src", | |
"subdirs": true | |
} | |
], |
gcloud services enable compute.googleapis.com \ | |
container.googleapis.com \ | |
iam.googleapis.com \ | |
deploymentmanager.googleapis.com \ | |
cloudresourcemanager.googleapis.com \ | |
file.googleapis.com \ | |
ml.googleapis.com |
title | date | image | draft | author | tags | ||
---|---|---|---|---|---|---|---|
Getting started with Dgraph tutorials series - 7: Ecommerce product search |
2019-12-11 06:30:00 +0530 |
tutorials/6/cover.jpg |
false |
karthic |
|
-
Download Dgraph repo using
go get
go get -u github.com/dgraph-io/dgraph
-
Go the
tok
package directory inside Dgraph's source.
Let us write a query by using Dgraph’s has function.
Has function returns all the nodes which has a particular predicate/property.
Again, we already know that both the nodes which we just created, has got name
predicate in them.
So, let’s use the has function to query for all the nodes which has predicate name in it.
Understanding the live tracking app by Hasura
-
Code at CodeSandbox
-
If you are new to Javascript, this guide covers all the necessary fundamentals.
Dgraph is a open source, transactional, distributed, native graph database. Ever since the internet explosion, the complexity, connectedness and the size of the data has been growing unprecedently. Dgraph is built as an effort to enable and simplify development of scalable cloud applications, even when the data is highly connected and complex.
The first production ready major release v1.0.0 happened in December 2017. Since then, the feedback from the community and customers has