Process tags from a VideoGQL & use on VideoFeed (#293)
currently will select first item if multiple tags present for a given class if we want to change the UI I can make it process & display multiple values for gameTypes/tableSizes, but as of now it's meant to handle a single one CLOSES #288 Co-authored-by: Loewy <loewy@chainstarters.com> Reviewed-on: railbird/railbird-mobile#293 Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
This commit is contained in:
parent
050705c370
commit
203d343880
@ -540,6 +540,11 @@ export type GetFeedQuery = {
|
|||||||
createdAt: any;
|
createdAt: any;
|
||||||
updatedAt: any;
|
updatedAt: any;
|
||||||
} | null;
|
} | null;
|
||||||
|
tags: Array<{
|
||||||
|
__typename?: "VideoTag";
|
||||||
|
name: string;
|
||||||
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
||||||
|
}>;
|
||||||
}>;
|
}>;
|
||||||
pageInfo: {
|
pageInfo: {
|
||||||
__typename?: "PageInfoGQL";
|
__typename?: "PageInfoGQL";
|
||||||
@ -958,6 +963,12 @@ export const GetFeedDocument = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
|
tags {
|
||||||
|
tagClasses {
|
||||||
|
name
|
||||||
|
}
|
||||||
|
name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
|
@ -32,6 +32,12 @@ query GetFeed($limit: Int! = 5, $after: String = null) {
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
|
tags {
|
||||||
|
tagClasses {
|
||||||
|
name
|
||||||
|
}
|
||||||
|
name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
|
Loading…
Reference in New Issue
Block a user