QueryRoot

The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start.

Show definition

# The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start.
type QueryRoot {
  # List of the shop's articles.
  articles(
    # Returns the elements that come after the specified cursor.
    after: String

# Returns the elements that come before the specified cursor. before: String

# Returns up to the first n elements from the list. first: Int

# Returns up to the last n elements from the list. last: Int

# Supported filter parameters: # - author # - updated_at # - created_at # - blog_title # - tag query: String

# Reverse the order of the underlying list. reverse: Boolean = false

# Sort the underlying list by the given key. sortKey: ArticleSortKeys = ID ): ArticleConnection!

# Find a blog by its handle. blogByHandle( # The handle of the blog. handle: String! ): Blog

# List of the shop's blogs. blogs( # Returns the elements that come after the specified cursor. after: String

# Returns the elements that come before the specified cursor. before: String

# Returns up to the first n elements from the list. first: Int

# Returns up to the last n elements from the list. last: Int

# Supported filter parameters: # - handle # - title # - updated_at # - created_at query: String

# Reverse the order of the underlying list. reverse: Boolean = false

# Sort the underlying list by the given key. sortKey: BlogSortKeys = ID ): BlogConnection! customer( # The customer access token customerAccessToken: String! ): Customer node( # The ID of the Node to return. id: ID! ): Node nodes( # The IDs of the Nodes to return. ids: [ID!]! ): [Node]! shop: Shop! }

Connections

articles   (ArticleConnection!)

List of the shop's articles.

Argument Type Default Description
after

String

Returns the elements that come after the specified cursor.

before

String

Returns the elements that come before the specified cursor.

first

Int

Returns up to the first n elements from the list.

last

Int

Returns up to the last n elements from the list.

query

String

Supported filter parameters:

  • author
  • updated_at
  • created_at
  • blog_title
  • tag

reverse

Boolean

false

Reverse the order of the underlying list.

sortKey

ArticleSortKeys

ID

Sort the underlying list by the given key.

blogs   (BlogConnection!)

List of the shop's blogs.

Argument Type Default Description
after

String

Returns the elements that come after the specified cursor.

before

String

Returns the elements that come before the specified cursor.

first

Int

Returns up to the first n elements from the list.

last

Int

Returns up to the last n elements from the list.

query

String

Supported filter parameters:

  • handle
  • title
  • updated_at
  • created_at

reverse

Boolean

false

Reverse the order of the underlying list.

sortKey

BlogSortKeys

ID

Sort the underlying list by the given key.

Fields

blogByHandle   (Blog)

Find a blog by its handle.

Argument Type Default Description
handle

required

String!

The handle of the blog.

customer   (Customer)

Argument Type Default Description
customerAccessToken

required

String!

The customer access token

node   (Node)

Argument Type Default Description
id

required

ID!

The ID of the Node to return.

nodes   ([Node]!)

Argument Type Default Description
ids

required

[ID!]!

The IDs of the Nodes to return.

shop   (Shop!)

Sign up for a Partner account to get started.

Sign up