next.js/examples/cms-wordpress/src/components/Templates/Post/PostQuery.ts
PostQuery.ts17 lines294 B
import gql from "graphql-tag";

export const PostQuery = gql`
  query PostQuery($id: ID!, $preview: Boolean = false) {
    post(id: $id, idType: DATABASE_ID, asPreview: $preview) {
      content
      date
      title
      author {
        node {
          name
        }
      }
    }
  }
`;
Quest for Codev2.0.0
/
SIGN IN