Hi guys, I have made a package which generates type from the strapi graphql endpoint,
such that I could do
const strapi = await Strapi.getInstance({
url: process.env.STRAPI_URL,
username: process.env.STRAPI_USERNAME,
password: process.env.STRAPI_PASSWORD
});
const { success, entities }: { success: boolean, entities: TestEntity[] } = await strapi.getEntities<TestEntity>({
types: "tests",
count: 10
});
and it’s generic with crud functions. Anyone would be interested in using this package? I’m trying to make it open source