Simple GtraphQL API for Lorem Ipsum Paragraph. Whats inside?
- simple GraphQL schema.
- Rich API ;)
- fetch paragraphs
- sentences
- words
- letters
npm install
# or
yarn
npm start # and follow instructions
I
GraphQL Editor will help you build queries but here you can find few examples.
{
lorem {
value
}
}
{
lorem {
sentence(index: 1) {
value
}
}
}
{
lorem {
sentence(index: 0) {
word(index: 1) {
letters {
value
}
}
}
}
}
If you lost, just try :) GraphQL Editor provides autocompletion and syntaxt validation.
I don't know :) In near future I want to add few more complex examples like aync resolves. Maybe we can fetch words definitions from online dictionaries. Ideas?