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

Add graphql query to add document to a component #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aliesesay
Copy link

Hello team,

As discussed with Josh Campbell, I'm raising this PR to add GraphQL query examples to add a document to a Compass component.

References:
https://developer.atlassian.com/cloud/compass/graphql/#mutations_addDocument)
https://developer.atlassian.com/cloud/compass/graphql/#queries_documentationCategories

@aliesesay aliesesay requested a review from a team as a code owner October 10, 2024 11:26
```graphql
{
"cloudId": "YOUR-CLOUD-ID",
"first": 10,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: you could limit this to just 4 as right now the categories are static so you won't ever get back more than that for a given site.

Maintainer
Other

Step 2: Use the following query to add a document to your Compass

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Should be "Use the following mutation ... "

```graphql
{
"input": {
"title": "title",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be worth calling out (in a comment or further above in the readme) that title is optional and you can just supply a url?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants