Playground for building a GraphQL endpoint atop an existing REST API provided by express
npm start
query getAllPeople {
allPeople{
id,
username,
email
}
}
query getById {
person(id: "PPBqWA9") {
firstName,
lastName,
friends{
firstName,
lastName
}
}
}
mutation addPerson {
addPerson(person: {firstName: "Gabriel", lastName: "Angelos", email: "gabriel@ange.los", username: "gabange"}) {
id
firstName
}
}
mutation updateAPerson {
updatePerson(person: {
id: "PPBqWA9",
lastName: "Luperculle"
}) {
firstName,
lastName,
id,
username
}
}
mutation deletePerson{
deletePerson(id: "B1A6qvGxg") {
firstName,
lastName,
username
}
}