Skip to content

Commit

Permalink
DEVDOCS-6087: [update] add favicon to storefront GraphQL (#484)
Browse files Browse the repository at this point in the history
<!-- Ticket number or summary of work -->
# [DEVDOCS-6087]


## What changed?
Added example mutation to get a storefront's favicon.


## Release notes draft

* The example query shows you how to get a storefront's favicon.
 

## Anything else?
<!-- Add related PRs, salient notes, additional ticket numbers, etc. -->

ping {names}


[DEVDOCS-6087]:
https://bigcommercecloud.atlassian.net/browse/DEVDOCS-6087?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: Nathan Booker <[email protected]>
  • Loading branch information
bc-traciporter and bookernath authored Sep 10, 2024
1 parent 89512a7 commit 1d742c0
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions docs/storefront/graphql/examples/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ query CustomerAttributes {
}
```

<a href="https://developer.bigcommerce.com/graphql?playground_tab=customerDetails" target="_blank">**Try it in GraphQL Playground**</a>
<a href="https://developer.bigcommerce.com/graphql-storefront/playground" target="_blank">**Try it in GraphQL Playground**</a>

## Get first three levels of category tree

Expand All @@ -91,7 +91,7 @@ fragment CategoryFields on CategoryTreeItem {
}
```

<a href="https://developer.bigcommerce.com/graphql?playground_tab=categoryTree" target="_blank">**Try it in GraphQL Playground**</a>
<a href="https://developer.bigcommerce.com/graphql-storefront/playground" target="_blank">**Try it in GraphQL Playground**</a>

## Get category and products within by URL

Expand Down Expand Up @@ -146,7 +146,7 @@ fragment PriceFields on Money {
}
```

<a href="https://developer.bigcommerce.com/graphql?playground_tab=categoriesByUrl" target="_blank">**Try it in GraphQL Playground**</a>
<a href="https://developer.bigcommerce.com/graphql-storefront/playground" target="_blank">**Try it in GraphQL Playground**</a>

## Look up an object by URL

Expand Down Expand Up @@ -187,7 +187,7 @@ query LookUpUrl {
}
```

<a href="https://developer.bigcommerce.com/graphql?playground_tab=objectsByUrl" target="_blank">**Try it in GraphQL Playground**</a>
<a href="https://developer.bigcommerce.com/graphql-storefront/playground" target="_blank">**Try it in GraphQL Playground**</a>

## Get popular brands

Expand All @@ -208,4 +208,18 @@ query {
}
```

<a href="https://developer.bigcommerce.com/graphql?playground_tab=popularBrands" target="_blank">**Try it in GraphQL Playground**</a>
<a href="https://developer.bigcommerce.com/graphql-storefront/playground" target="_blank">**Try it in GraphQL Playground**</a>

## Get a favicon to Storefront GraphQL

```graphql filename="Example query: Get the storefront's favicon" showLineNumbers copy
query Favicon {
site {
settings {
faviconUrl
}
}
}
```

<a href="https://developer.bigcommerce.com/graphql-storefront/playground" target="_blank">**Try it in GraphQL Playground**</a>

0 comments on commit 1d742c0

Please sign in to comment.