generated from taylorbryant/gatsby-starter-tailwind
-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: profile & climb GQL should use the same media fragment
- Loading branch information
viet nguyen
committed
Apr 29, 2023
1 parent
385c999
commit 865b044
Showing
1 changed file
with
3 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
` |