A very basic GraphQL API to query english irregular verbs.
Live iVerb API graphiQL URL: https://iverb-graphql.huckbit.com/graphql
Once the server is up and running open GraphiQL at http://localhost:4000/graphql
{
verbs {
id
infinitive
presentParticiple
past
pastParticiple
}
}
{
verbs(limit: 10) {
id
infinitive
presentParticiple
past
pastParticiple
}
}
{
verbs(start: 20, end: 30) {
id
infinitive
presentParticiple
past
pastParticiple
}
}
{
verbs(start: 20, end: 30, limit: 5) {
id
infinitive
presentParticiple
past
pastParticiple
}
}
{
verbs(startsWith: "ba") {
id
infinitive
presentParticiple
past
pastParticiple
}
}
{
randomVerb {
id
infinitive
presentParticiple
past
pastParticiple
}
}
Use the following query
query getVerbById($id: String!) {
verbByID(id: $id) {
id
infinitive
presentParticiple
past
pastParticiple
}
}
And for example the following for the Query variables
{
"id": "5eac5bec4ff0d27fa4efa7d2"
}
Use the following query
query getVerbByInfinitive($infinitive: String!) {
verbByInfinitive(infinitive: $infinitive) {
id
infinitive
presentParticiple
past
pastParticiple
}
}
Use for the query variable for example:
{
"infinitive": "do"
}