Finally, a CMS that lets your marketing team publish content without touching code or waiting for developers. PMKIN empowers non-technical teams to create and manage content independently.
import { GraphQLClient, gql } from 'graphql-request'const query = gql`query ListDocuments {documents(includeDrafts: false) {idisPublishedmetaDescriptionmetaTitlepublishedAtslugsubtitletitle}}`const client = new GraphQLClient('https://content.pmkin.io/graphql', {headers: {Authorization: `Bearer ${process.env.PMKIN_API_KEY}`}}const { documents } = await client.request(query)