プラグインデータのクエリ
プラグインデータのクエリEvents Manager

Events Manager

Events Managerプラグインのデータを操作するクエリの例を紹介します。

イベントの取得

イベントの一覧を、関連するロケーションデータとともに取得します:

query GetEvents($postId: ID!) {
  events(by: { id: $postId }) {
    id
    title
    content
    startDate
    endDate
    isAllDay
    location {
      id
      name
      address
      city
      coordinates
    }
  }
}