README

To run this project:

Create User mutation

mutation {
  addUser(
    input:{
      params: {
        name: "Henrique Fontoura2"
      }
    }
  ){
    user{
      name
    }
  }
}

Create Note mutation

mutation {
  addNote(input: {params: {title: "Nota 0001", body: "Textao mano", userId: 1}}) {
    note {
      id
      title
      body
      createdAt
      user {
        id
        name
        createdAt
      }
    }
  }
}

List Notes query

query {
  fetchNotes(
    userId: 1 #optional filter
  ) {
    id
    title
    body
    createdAt
    user {
      id
      name
      createdAt
    }
  }
}