The API automatically generates queries for fetching both single and multiple instances of each defined content type.
For example, if we defined a book
content type, the following queries would be generated by the API:
If you wanted to retrieve a specific book, you could use the following request:
query {
bookItem(id: "1234") {
title
}
}
In the event that you wanted to retrieve multiple books, you could send the following:
query {
bookCollection {
items {
title
}
}
}
© 2022 Status200 Ltd.