Skip to content

Instantly share code, notes, and snippets.

@yyyyaaa
Created December 31, 2020 06:01
Show Gist options
  • Save yyyyaaa/aecd7878f127e42bb9bf08e4ce30cab7 to your computer and use it in GitHub Desktop.
Save yyyyaaa/aecd7878f127e42bb9bf08e4ce30cab7 to your computer and use it in GitHub Desktop.
query getActionsQuery($first: Int, $last: Int, $after: Cursor, $before: Cursor, $offset: Int, $condition: ActionCondition, $filter: ActionFilter, $orderBy: [ActionsOrderBy!]) {
actions(
first: $first
last: $last
offset: $offset
after: $after
before: $before
condition: $condition
filter: $filter
orderBy: $orderBy
) {totalCount, pageInfo {
hasNextPage
hasPreviousPage
}, nodes {
id
slug
photo
title
description
discoveryHeader
discoveryDescription
enableNotifications
enableNotificationsText
search
locationRadius
startDate
endDate
approved
rewardAmount
activityFeedText
callToAction
completedActionText
alreadyCompletedActionText
tags
createdBy
updatedBy
createdAt
updatedAt
ownerId
actionGoals {nodes {
createdBy
updatedBy
createdAt
updatedAt
actionId
goalId
ownerId
}}
actionResults {nodes {
id
createdBy
updatedBy
createdAt
updatedAt
actionId
ownerId
}}
actionItems {nodes {
id
name
description
type
itemOrder
isRequired
notificationText
embedCode
url
media
ownerId
createdBy
updatedBy
createdAt
updatedAt
actionId
}}
userActions {nodes {
id
actionStarted
complete
verified
verifiedDate
userRating
rejected
rejectedReason
createdBy
updatedBy
createdAt
updatedAt
userId
verifierId
actionId
}}
userActionResults {nodes {
id
value
createdBy
updatedBy
createdAt
updatedAt
userId
actionId
userActionId
actionResultId
}}
userActionItems {nodes {
id
value
status
createdBy
updatedBy
createdAt
updatedAt
userId
actionId
userActionId
actionItemId
}}
userPassActions {nodes {
id
createdBy
updatedBy
createdAt
updatedAt
userId
actionId
}}
userSavedActions {nodes {
id
createdBy
updatedBy
createdAt
updatedAt
userId
actionId
}}
userViewedActions {nodes {
id
createdBy
updatedBy
createdAt
updatedAt
userId
actionId
}}
userActionReactions {nodes {
id
createdBy
updatedBy
createdAt
updatedAt
userActionId
userId
reacterId
actionId
}}
searchRank
goals {nodes {
id
name
slug
shortName
icon
subHead
tags
search
createdBy
updatedBy
createdAt
updatedAt
searchRank
}}
}}
}
@pyramation
Copy link

query getActionsQuery($first: Int, $last: Int, $after: Cursor, $before: Cursor, $offset: Int, $condition: ActionCondition, $filter: ActionFilter, $orderBy: [ActionsOrderBy!]) {
  actions(
    first: $first
    last: $last
    offset: $offset
    after: $after
    before: $before
    condition: $condition
    filter: $filter
    orderBy: $orderBy
  ) {totalCount, pageInfo {
    hasNextPage
    hasPreviousPage
  }, nodes {
    id
    slug
    photo
    title
    description
    discoveryHeader
    discoveryDescription
    enableNotifications
    enableNotificationsText
    search
    locationRadius
    startDate
    endDate
    approved
    rewardAmount
    activityFeedText
    callToAction
    completedActionText
    alreadyCompletedActionText
    tags
    createdBy
    updatedBy
    createdAt
    updatedAt
    ownerId
    actionGoals (first:3) {nodes {
      createdBy
      updatedBy
      createdAt
      updatedAt
      actionId
      goalId
      ownerId
    }}
    actionResults (first:3){nodes {
      id
      createdBy
      updatedBy
      createdAt
      updatedAt
      actionId
      ownerId
    }}
    actionItems(first:3) {nodes {
      id
      name
      description
      type
      itemOrder
      isRequired
      notificationText
      embedCode
      url
      media
      ownerId
      createdBy
      updatedBy
      createdAt
      updatedAt
      actionId
    }}
    userActions(first:3) {nodes {
      id
      actionStarted
      complete
      verified
      verifiedDate
      userRating
      rejected
      rejectedReason
      createdBy
      updatedBy
      createdAt
      updatedAt
      userId
      verifierId
      actionId
    }}
    userActionResults(first:3) {nodes {
      id
      value
      createdBy
      updatedBy
      createdAt
      updatedAt
      userId
      actionId
      userActionId
      actionResultId
    }}
    userActionItems(first:3) {nodes {
      id
      value
      status
      createdBy
      updatedBy
      createdAt
      updatedAt
      userId
      actionId
      userActionId
      actionItemId
    }}
    userPassActions(first:3) {nodes {
      id
      createdBy
      updatedBy
      createdAt
      updatedAt
      userId
      actionId
    }}
    userSavedActions(first:3) {nodes {
      id
      createdBy
      updatedBy
      createdAt
      updatedAt
      userId
      actionId
    }}
    userViewedActions(first:3) {nodes {
      id
      createdBy
      updatedBy
      createdAt
      updatedAt
      userId
      actionId
    }}
    userActionReactions(first:3) {nodes {
      id
      createdBy
      updatedBy
      createdAt
      updatedAt
      userActionId
      userId
      reacterId
      actionId
    }}
    searchRank
    goals {nodes {
      id
      name
      slug
      shortName
      icon
      subHead
      tags
      search
      createdBy
      updatedBy
      createdAt
      updatedAt
      searchRank
    }}
  }}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment