add filter on organizer

This commit is contained in:
2024-06-20 02:14:21 +02:00
parent 7294e500c6
commit 90ada3e449
9 changed files with 126 additions and 25 deletions

View File

@ -33,6 +33,10 @@ export function randomElement(array: any[]): any | undefined {
: undefined;
}
export function unique<T>(array: any[]): any[] {
return Array.from(array.reduce((set, item) => set.add(item), new Set()));
}
const BlockFragmentDefinition = graphql(`
fragment Blocks on StreamFieldInterface {
id

View File

@ -74,7 +74,9 @@ const EventFragmentDefinition = graphql(`
}
organizers {
... on EventOrganizer {
id
name
slug
externalUrl
association {
... on AssociationPage {
@ -104,6 +106,19 @@ export const futureEventsQuery = graphql(`
showInFilters
}
}
eventOrganizers: eventOrganizers {
... on EventOrganizer {
id
name
slug
externalUrl
association {
... on AssociationPage {
url
}
}
}
}
}
`);