Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
vue-contentful-hook
Advanced tools
A hook to call the contentful API using GraphQl
Ideally you should pass env variables as token and spaceId
export interface Dummy<T, U> {
readonly dummyCollection: {
readonly total: number;
readonly skip: number;
readonly limit: number;
readonly items: readonly T[];
};
readonly someOtherDummyCollection: {
readonly total: number;
readonly skip: number;
readonly limit: number;
readonly items: readonly U[];
};
}
const query = `
{
dummyCollection {
items {
name
}
}
someOtherDummyCollection {
items {
name
}
}
}
`;
const { data } = useContentful<Dummy<string, number>>(query, {
token: "myToken",
spaceId: "mySpaceId",
});
// an array of strings
console.log("data", data.value?.dummyCollection.items);
// an array of numbers
console.log("data", data.value?.dummyCollection.items);
Lucien Bénié 💻 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
1.3.4 (2022-06-22)
FAQs
A vue hook to fetch contentful data using GraphQL query
The npm package vue-contentful-hook receives a total of 5 weekly downloads. As such, vue-contentful-hook popularity was classified as not popular.
We found that vue-contentful-hook demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.