Handle cache update when creating new metadata

In case the metadata didn't exist yet, it was never added to the meta array because the objects meta field was never updated
This commit is contained in:
schroda
2024-09-22 02:46:01 +02:00
parent 7abfbd09ef
commit a06e170d78
10 changed files with 174 additions and 45 deletions

View File

@@ -8,6 +8,14 @@
import gql from 'graphql-tag';
export const SOURCE_META_FIELDS = gql`
fragment SOURCE_META_FIELDS on SourceMetaType {
sourceId
key
value
}
`;
export const SOURCE_BASE_FIELDS = gql`
fragment SOURCE_BASE_FIELDS on SourceType {
id
@@ -47,6 +55,7 @@ export const SOURCE_LIST_FIELDS = gql`
export const SOURCE_BROWSE_FIELDS = gql`
${SOURCE_BASE_FIELDS}
${SOURCE_META_FIELDS}
fragment SOURCE_BROWSE_FIELDS on SourceType {
...SOURCE_BASE_FIELDS
@@ -55,9 +64,7 @@ export const SOURCE_BROWSE_FIELDS = gql`
supportsLatest
meta {
sourceId
key
value
...SOURCE_META_FIELDS
}
filters {