Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 485 Bytes

queries.md

File metadata and controls

43 lines (34 loc) · 485 Bytes

SQL queries

Insert event

INSERT INTO event (title, description, start, end_date, room) VALUES (
    'Fun Event',
    'A verry good event',
    '2021-08-10T21:00' ,
    '2021-08-10T22:00',
    'BIG_HUB');

GraphQL Queries

Query all

{
  events {
    id
    title
  }
}

Query specific

query GetEvent($id: String!) {
  event(id: $id) {
    id
  }
}

Variables

{
  "id": "1068380c-f9f7-11eb-9702-0242ac1a0002"
}