• This project
    • Loading...
  • Sign in

2021-1-capstone-design2 / 2015104215

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • 2015104215
  • project
  • packages
  • web
  • src
  • gql
  • post-with-comments.ts
  • jaehyuk-jang's avatar
    use Data fetching for graphql · a994f66a
    a994f66a
    jaehyuk-jang authored 2021-06-11 01:10:24 +0900
post-with-comments.ts 384 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import gql from 'graphql-tag';

export const GET_POST_WITH_COMMENTS = gql`
  query GetPostWithComments($post_id: Float!, $inputComment: GetCommentInput!) {
    getPost(id: $post_id) {
      id
      author
      category
      created_date
      title
      content
    }
    getSomeComments(input: $inputComment) {
      id
      author
      content
      created_date
    }
  }
`;