💛Get Started
In this quick guide we will look making simple requests to our the Rocketmeme GraphQL API.
Access is free
Making your first request
GraphQL API
fetch('https://rocketmeme-user.hasura.app/v1/graphql', {
method: 'POST',
headers: {
'content-type': 'application/json',
},
body: JSON.stringify({"operationName":"getPaginatedMemeCategories","variables":{},"query":"query getPaginatedMemeCategories {\n meme_categories_aggregate(limit: 10, offset: 0) {\n nodes {\n id\n category_title\n no_of_memes\n thumb_nail\n __typename\n }\n __typename\n }\n count: memes_aggregate(offset: 0) {\n aggregate {\n count\n __typename\n }\n __typename\n }\n}\n"})
});import fetch from "node-fetch";
const query = `
query getMemes {
memes(limit: 3) {
id
title
image_link
}
}
`;
const result = await fetch("https://rocketmeme-user.hasura.app/v1/graphql", {
method: "POST",
headers: {
"content-type": "application/json",
},
body: JSON.stringify({
operationName: "getMemes",
variables: {},
query: query,
}),
});
const data = await result.json();
console.log(data);Rest API
Create pet.
Request Body
Name
Type
Description
Last updated
