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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.