Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some query examples #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 29 additions & 20 deletions graphql_query_examples/graphql_query_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -902,10 +902,10 @@ query get_services($endCursor: String) {
### 🔎 services > query by filter (get filters first)

```graphql
query filters{
account{
filters{
nodes{
query filters($endCursor: String) {
account {
filters(after: $endCursor) {
nodes {
name
id
connective
Expand All @@ -915,17 +915,28 @@ query filters{
}
htmlUrl
}
pageInfo{
endCursor
hasNextPage
}
}
}
}

query services_by_filter{
account{
services(filterIdentifier:{id: "Z2lkOi8vb3BzbGV2ZWwvRmlsdGVyLzg1NA"}){
nodes{
query services_by_filter($endCursor: String) {
account {
services(
filterIdentifier: {id: "Z2lkOi8vb3BzbGV2ZWwvRmlsdGVyLzIwNjg"}
after: $endCursor
) {
nodes {
name
id
}
pageInfo{
endCursor
hasNextPage
}
}
}
}
Expand Down Expand Up @@ -1094,27 +1105,25 @@ query services_overallLevel_for_all($endCursor: String) {
### 🔎 services > maturityReport > latestCheckResults (show results for a check and all matching services)

```graphql
query get_checks_by_id_only{
account{
rubric{
checks {
edges {
node {
id
name
}
query get_checks_id_and_name($endCursor: String) {
account {
rubric {
checks(after: $endCursor) {
nodes {
id
name
}
}
}
}
}

query get_results_for_list_of_checks {
query get_results_for_list_of_checks($endCursor: String) {
account {
services {
services(after: $endCursor) {
nodes {
maturityReport {
latestCheckResults (ids: ["Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpSZXBvRmlsZS8zNjQy"]) {
latestCheckResults(ids: ["Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8zNjQz"]) {
check {
id
}
Expand Down