Skip to content

Latest commit

 

History

History
45 lines (39 loc) · 514 Bytes

ExampleQueries.md

File metadata and controls

45 lines (39 loc) · 514 Bytes

Example Queries

Here is a list of example queries you can execute on playground to test this boilerplate.

Query

# List all Todos tagged: "test"
query Todos {
  todos(tags:["test"]) {
    id
    name
    tags {
      slug
    }
  }
}

# List all Tags
query Tags {
  tags {
    id
    slug
  }
}

Mutation

# Create a todo
query CreateTodo {
  createTodo(
    name: "My to-do"
    tags: ["test", "anothertag"]
  ) {
    id
    name
    tags {
      id
      slug
    }
  }
}