nmsohn / hotchoc-playground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hotchoc-playground

Query

query{
  items
  {
    id
    title
  }
}

Filtering

query {
  lists(where: {id: {eq: 1} })
  {
    id
    name
    todoItems {
      title
    }
  }
}

Sorting

query{
  lists(order: {name: DESC})
  {
    id
    name
  }
}

Mutation

mutation{
  addList(request: {
    name: "Work"
  })
  {
    list
    {
      name
    }
  }
}
mutation{
  addItem(request: {
    title: "Bring laptop",
    description: "Bring the laptop with charger",
    done: true,
    todoListId: 1
  })
  {
    item
    {
      id
      title
    }
  }
}

Reference

About

License:MIT License


Languages

Language:C# 100.0%