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 ¶
NewClient create a new client for dgraph see https://docs.dgraph.io/clients/#create-the-client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.