Skip to content

Instantly share code, notes, and snippets.

@da-moon
Last active January 26, 2019 01:25
Show Gist options
  • Save da-moon/1e327f21d1acf86eb0e46d9fca75f14e to your computer and use it in GitHub Desktop.
Save da-moon/1e327f21d1acf86eb0e46d9fca75f14e to your computer and use it in GitHub Desktop.
{
data(func: has(user))
@filter(eq(username, "damoon")){
bucket
@filter(eq(name,"Test Bucket Three")){
uid
name
created
visiblitystatus
}
}
}
{
data(func: has(credential)){
credential @filter(eq(accesskey,"SYYWBS3M18NHA6JH5YEY")){
enabled
}
}
}
{
data(func: has(user))
@filter(eq(username, "damoon")){
bucket {
uid
name
created
visiblitystatus
}
}
}
{
data(func: has(user))
@filter(eq(username, "damoon")){
uid
checkpwd(password,"password")
expand(_all_) {
uid
expand(_all_)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment