react-code-dataset / next.js /examples /cms-wordpress /src /components /Templates /Post /PostQuery.ts
Download next.js/examples/cms-wordpress/src/components/Templates/Post/PostQuery.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/next.js/examples/cms-wordpress/src/components/Templates/Post/PostQuery.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/next.js/examples/cms-wordpress/src/components/Templates/Post/PostQuery.ts
-
curl -L -o PostQuery.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/next.js/examples/cms-wordpress/src/components/Templates/Post/PostQuery.ts
294 Bytes
| 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 | |
| } | |
| } | |
| } | |
| } | |
| `; | |