Skip to content

Commit

Permalink
WIP: profile & climb GQL should use the same media fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
viet nguyen committed Apr 29, 2023
1 parent 385c999 commit 865b044
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/js/graphql/gql/users.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
import { gql } from '@apollo/client'

import { FRAGMENT_MEDIA_WITH_TAGS } from './tags'
export const QUERY_USER_MEDIA = gql`
${FRAGMENT_MEDIA_WITH_TAGS}
query ($userUuid: ID!, $limit: Int) {
getUserMedia(userUuid: $userUuid, limit: $limit ) {
mediaUrl
height
width
birthTime
climbTags {
name
id
type
}
areaTags {
id
name
type
}
... MediaWithTagsFields
}
}
`

0 comments on commit 865b044

Please sign in to comment.