Graphlit Platform
Developer PortalChangelogPlatform StatusMore InformationJoin Discord
  • Graphlit Platform
    • What is Graphlit?
    • Key Concepts
  • Getting Started
    • Sign up for Graphlit
    • Create Graphlit Project
    • For Python Developers
    • For Node.js Developers
    • For .NET Developers
  • 🚀Quickstart
    • Next.js applications
      • GitHub Code
    • Python applications
      • GitHub Code
  • Graphlit Data API
    • API Usage
      • API Endpoints
      • API Authentication
      • API Explorer
      • GraphQL 101
    • API Reference
      • Content
        • Ingest With Workflow
        • Ingest File
        • Ingest Encoded File
        • Ingest Web Page
        • Ingest Text
        • Semantic Search
          • Query All Content
          • Query Facets
          • Query By Name
          • Filter By Contents
        • Metadata Filtering
          • Filter By Observations
          • Filter By Feeds
          • Filter By Collections
          • Filter By Content Type
          • Filter By File Type
          • Filter By File Size Range
          • Filter By Date Range
        • Summarize Contents
        • Extract Contents
        • Publish Contents
      • Knowledge Graph
        • Labels
        • Categories
        • Persons
        • Organizations
        • Places
        • Events
        • Products
        • Repos
        • Software
      • Collections
      • Feeds
        • Create Feed With Workflow
        • Create RSS Feed
        • Create Podcast Feed
        • Create Web Feed
        • Create Web Search Feed
        • Create Reddit Feed
        • Create Notion Feed
        • Create YouTube Feed
        • User Storage Feeds
          • Create OneDrive Feed
          • Create Google Drive Feed
          • Create SharePoint Feed
        • Cloud Storage Feeds
          • Create Amazon S3 Feed
          • Create Azure Blob Feed
          • Create Azure File Feed
          • Create Google Blob Feed
        • Messaging Feeds
          • Create Slack Feed
          • Create Microsoft Teams Feed
          • Create Discord Feed
        • Email Feeds
          • Create Google Mail Feed
          • Create Microsoft Outlook Feed
        • Issue Feeds
          • Create Linear Feed
          • Create Jira Feed
          • Create GitHub Issues Feed
        • Configuration Options
      • Workflows
        • Ingestion
        • Indexing
        • Preparation
        • Extraction
        • Enrichment
        • Actions
      • Conversations
      • Specifications
        • Azure OpenAI
        • OpenAI
        • Anthropic
        • Mistral
        • Groq
        • Deepseek
        • Replicate
        • Configuration Options
      • Alerts
        • Create Slack Audio Alert
        • Create Slack Text Alert
      • Projects
    • API Changelog
    • Multi-tenant Applications
  • JSON Mode
    • Overview
    • Document JSON
    • Transcript JSON
  • Content Types
    • Files
      • Documents
      • Audio
      • Video
      • Images
      • Animations
      • Data
      • Emails
      • Code
      • Packages
      • Other
    • Web Pages
    • Text
    • Posts
    • Messages
    • Emails
    • Issues
  • Data Sources
    • Feeds
  • Platform
    • Developer Portal
      • Projects
    • Cloud Platform
      • Security
      • Subprocessors
  • Resources
    • Community
Powered by GitBook
On this page
  • Overview
  • Operations

Was this helpful?

  1. Graphlit Data API
  2. API Reference
  3. Knowledge Graph

Events

Create, manage and query Events.

Last updated 1 year ago

Was this helpful?

Overview

Event entities describe an event happening at a certain time and location such as a concert, lecture, or festival, as defined by . Events are specified by their name.

Events are not unique by name, across the Graphlit project.

Operations

Create Event

The createEvent mutation enables the creation of an event by accepting the event name, startDate, endDate and price. It returns essential details, including the ID and name of the newly generated event.

Mutation:

mutation CreateEvent($event: EventInput!) {
  createEvent(event: $event) {
    id
    name
  }
}

Variables:

{
  "event": {
    "startDate": "2023-10-03T21:00:00",
    "endDate": "2023-10-03T22:00:00",
    "price": 10.0,
    "name": "AI Hackathon"
  }
}

Response:

{
  "id": "fe86c378-63dc-4321-b139-b451a2086ae7",
  "name": "AI Hackathon"
}
Update Event

The updateEvent mutation enables the updating of an event by accepting the event name, and optional fields like startDate and endDate.

Mutation:

mutation UpdateEvent($event: EventUpdateInput!) {
  updateEvent(event: $event) {
    id
    name
  }
}

Variables:

{
  "event": {
    "startDate": "2023-10-05T21:00:00",
    "endDate": "2023-10-05T22:00:00",
    "price": 20.0,
    "uri": "https://www.example.com",
    "id": "fe86c378-63dc-4321-b139-b451a2086ae7",
    "name": "Seattle AI Hackathon"
  }
}

Response:

{
  "id": "fe86c378-63dc-4321-b139-b451a2086ae7",
  "name": "Seattle AI Hackathon"
}
Delete Event

The deleteEvent mutation allows the deletion of an event by utilizing the id parameter, and it returns the ID and state of the deleted event.

Mutation:

mutation DeleteEvent($id: ID!) {
  deleteEvent(id: $id) {
    id
    state
  }
}

Variables:

{
  "id": "fe86c378-63dc-4321-b139-b451a2086ae7"
}

Response:

{
  "id": "fe86c378-63dc-4321-b139-b451a2086ae7",
  "state": "DELETED"
}
Delete Events

The deleteEvents mutation allows the deletion of multiple events, as specified by the ids array parameter, and it returns the ID and state of the deleted events.

Mutation:

mutation DeleteEvents($ids: [ID!]!) {
  deleteEvents(ids: $ids) {
    id
    state
  }
}

Variables:

{
  "ids": [
    "39fcf408-15ca-4cc2-9476-622d64aa38f3",
    "93476a0c-d567-4624-9d5e-df43dfff92ea"
  ]
}

Response:

[
  {
    "id": "93476a0c-d567-4624-9d5e-df43dfff92ea",
    "state": "DELETED"
  },
  {
    "id": "39fcf408-15ca-4cc2-9476-622d64aa38f3",
    "state": "DELETED"
  }
]
Get Event

The event query allows you to retrieve specific details of an event by providing the id parameter.

Query:

query GetEvent($id: ID!) {
  event(id: $id) {
    id
    name
    startDate
    endDate
    price
  }
}

Variables:

{
  "id": "fe86c378-63dc-4321-b139-b451a2086ae7"
}

Response:

{
  "id": "fe86c378-63dc-4321-b139-b451a2086ae7",
  "name": "Seattle AI Hackathon"
}
Query Events

Query Events

Query Events By Name

Schema.org

Queries

Mutations

Objects

Query Events
Query Events By Name