Hi All,
I am looking for some examples on using the graphql api to search for components. I probably can push my way through, but if there are examples available, it would accelerate my efforts.
I am specifically looking to create the following queries:
Thank you
To retrieve all components you can use an empty object as the query, so `query: {}` as in:
query example {
compass {
searchComponents(cloudId: "", query:{}) {
... on CompassSearchComponentConnection {
nodes {
link
component {
name
description
typeId
ownerId
links {
id
type
name
url
}
labels {
name
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
... on QueryError {
message
extensions {
statusCode
errorType
}
}
}
}
}
There is a series of articles describing in detail how to authenticate and query Compass GQL API:
once you read/watch these articles you should be able to run queries like: https://github.com/atlassian-labs/compass-examples/tree/main/snippets/graphql/search-components.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.