eventeo-gql-service

command module
v0.0.0-...-eb2022f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 7 Imported by: 0

README

"EVENTEO" Event management service

Create
mutation CreateEventListing($input: CreateEventListingInput!) {
  createEventListing(input:$input){
    _id
    title
    description
    organizer
    url
  }
}

# variables
{
  "input": {
    "title": "Software development competition",
    "description": "This is a sample event",
    "organizer": "dineOrg",
    "url": "dinethpiyumantha.netlify.app"
  }
}
Get a event
query GetEvent($id: ID!){
  event(id:$id){
    _id
    title
    description
    url
    organizer
  }
}

# variables
{
  "id": "654369d97c80cd8aebdf77a4"
}
Update
mutation UpdateEvent($id: ID!, $input: UpdateEventListingInput!) {
  updateEventListing(id:$id, input:$input){
    title
    description
    _id
    organizer
    url
  }
}

#variables
{
  "id": "654369d97c80cd8aebdf77a4",
  "input": {
    "title": "Software development competition 2024"
  }
}
Delete
mutation DeleteQuery($id: ID!){
  deleteEventListing(id:$id){
    deleteEventId
  }
}

#variables
{
  "id": "654369d97c80cd8aebdf77a4"
}
Get All
query GetAllEvents {
  events {
    _id
    title
    description
    organizer
  }
}
Get with Pagination
query PaginatedEvents {
  eventsPaginated(page: 1, limit: 3) {
    _id
    title
    description
    organizer
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL