younifyd
Menu

article

Fetch a single article by its ID.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the article action (under Article).
  3. Fill in the fields below, then reference the result from later steps as {{article.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query Article($id: ID!) {
  article(id: $id) {
    author {
      name
    }
    blog {
      commentPolicy
      createdAt
      feed {
        location
        path
      }
      handle
      id
      tags
      templateSuffix
      title
      updatedAt
    }
    body
    createdAt
    defaultCursor
    handle
    id
    image {
      altText
      height
      id
      originalSrc
      src
      thumbhash
      width
    }
    isPublished
    publishedAt
    summary
    tags
    templateSuffix
    title
    updatedAt
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

idstringrequired

The ID of the `Article` to return.

json
{
  "id": "string"
}

Response

Read the result with {{article.response.data.data.article}}. If the API returns errors, the step fails and they are at {{article.response.data.errors}}.

authorobject
namestring
blogobject
commentPolicystring

One ofAUTO_PUBLISHEDCLOSEDMODERATED

createdAtstring
feedobject2 fields
handlestring
idstring
tagsarray<object>
templateSuffixstring
titlestring
updatedAtstring
bodystring
createdAtstring
defaultCursorstring
handlestring
idstring
imageobject
altTextstring
heightnumber
idstring
originalSrcstring
srcstring
thumbhashstring
widthnumber
isPublishedboolean
publishedAtstring
summarystring
tagsarray<string>
templateSuffixstring
titlestring
updatedAtstring

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

article — Shopify — Documentation