Last active
July 4, 2018 03:09
-
-
Save juancampa/bacc417a09f6825f631f3a0e7c318bd1 to your computer and use it in GitHub Desktop.
Example of a Membrane query from the CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ membrane query | |
'github:users.one(name:"facebook").repos.one(name:"react")' | |
'{ | |
issues { | |
page { | |
items { | |
state | |
comments | |
self | |
} | |
} | |
} | |
}' | |
OUTPUT: | |
{ | |
"issues": { | |
"page": { | |
"items": [ | |
{ | |
"state": "open", | |
"comments": 1, | |
"self": { | |
"$ref": "github:users.one(name:\"facebook\").repos.one(name:\"react\").issues.one(number:13145)" | |
} | |
}, | |
{ | |
"state": "open", | |
"comments": 0, | |
"self": { | |
"$ref": "github:users.one(name:\"facebook\").repos.one(name:\"react\").issues.one(number:13142)" | |
} | |
}, | |
(...) | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment