database

package
v0.0.0-...-4c09e60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UserByPhone is a query for user
	//! require var $phone
	UserByPhone = `` /* 143-byte string literal not displayed */

	// AllUser is the query for all users
	// ! notice that this query use username so no-user node should not use
	// ! username as edge
	AllUser = `{
		allUser(func: has(username)){
		  username
		  uid
		  phone
		  email
		}
	  }
	`

	// AllPaper is the query for all papers
	AllPaper = `` /* 199-byte string literal not displayed */

	// PaperByTitle is the query for a paper by title
	//! require var $title
	PaperByTitle = `` /* 236-byte string literal not displayed */

	AllResearcher = `{
		allResearcher(func: has(name)){
			name
			uid
			paper{
			  expand(_all_)
			}
		}
	}
	`
	ResearcherByName = `` /* 242-byte string literal not displayed */

	PaperByAuthor = `` /* 146-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func NewClient

func NewClient() *dgo.Dgraph

NewClient create a new client for dgraph see https://docs.dgraph.io/clients/#create-the-client

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL