Comment use of GQL 'location' fragment in webapp 'groups' file

This commit is contained in:
Wolfgang Huß 2023-01-12 15:44:06 +01:00
parent fbf1f74098
commit 04f43cde71

View File

@ -1,4 +1,5 @@
import gql from 'graphql-tag'
// Wolle: import { locationFragment } from './Fragments'
// ------ mutations
@ -146,7 +147,9 @@ export const changeGroupMemberRoleMutation = () => {
export const groupQuery = (i18n) => {
const lang = i18n ? i18n.locale().toUpperCase() : 'EN'
// ${locationFragment(lang)}
return gql`
query ($isMember: Boolean, $id: ID, $slug: String, $first: Int, $offset: Int) {
Group(isMember: $isMember, id: $id, slug: $slug, first: $first, offset: $offset) {
id
@ -171,6 +174,7 @@ export const groupQuery = (i18n) => {
url
}
locationName
# ...location
location {
name: name${lang}
lng