Overview
Your GraphQL endpoint is automatically configured based on your .mockend.json
file. You can query, filter, sort and access nested resources.
Endpoint
To access your API go to https://mockend.com/api/your_username_or_org/your_repo/graphql (opens in a new tab)
Examples
You can test our demo server here https://mockend.com/mockend/demo/graphql (opens in a new tab). Click on "Docs" on the right to view available operations.
To get you started, you can copy/paste the following queries:
{
posts {
id
title
cover
}
}
{
posts(limit: 5, orderBy: { createdAt: desc }) {
id
title
}
}
{
posts(where: { category: { eq: "one" } }) {
id
title
comments {
email
body
}
}
}