Skip to content

This project is a simple backend service that manages events using GraphQL and GoLang. One MongoDB database is used by it.

License

Notifications You must be signed in to change notification settings

dinethpiyumantha/eventeo-gql-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"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
  }
}

About

This project is a simple backend service that manages events using GraphQL and GoLang. One MongoDB database is used by it.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages